VisualCron 7.1.9
I'm trying to automate a cleanup of old backup files. I want to delete old folders AFTER the new folder has been created on the share.
For example:
I use a loop to determine which folders to create/delete.
Below would be an example of the first iteration through the loop.
These folders already exist on the share:
DBNAME_20161220_FULL
DBNAME_20161213_FULL
DBNAME_20161227_FULL is created.
Now I need to delete DBNAME_20161220_FULL and DBNAME_20161213_FULL.
I use the following RegEx to determine which Folder(s) to delete:
{REGEX(Replace|{LOOP(CurrentValueXLine)}|\d{8}|*)}
Which yields: DBNAME_*_FULL
I don't want to delete the NEW folder (DBNAME_20161227_FULL), so the folder {LOOP(CurrentValueXLine)} is checked as Use folder Exclusion.
Nothing is getting deleted and no error is generated..
Edited by user
2016-12-05T16:55:25Z
|
Reason: Not specified