delete directory - VisualCron - Forum

Community forum

Bob Burt
2017-04-05T19:02:53Z
We have a backup job that creates a directory and places files in them. One directory for each day.

Can I create a task that will delete a directory if it is 7 days older than current date?


Or possibly a task that would keep the last 4 directories?
thomas
2017-04-06T12:04:32Z
Sure, just use the 'Delete folder' task, and add a date condition under the Folder filter.
Support
2017-04-10T14:30:35Z
The date Variable could look like:

{DATENOWADD(Days|-7|yyyy-MM-dd HH:mm)}
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Users browsing this topic
Scroll to Top