Page 1 of 1

Delete old source files

Posted: Mon Nov 02, 2020 8:48 pm
by rgs
I'd like to back up a folder, then delete any source files older than 30 days, without deleting any destination files. Is this possible?

Re: Delete old source files

Posted: Wed Mar 22, 2023 6:22 pm
by vchung5
I know this post is quite old. But were you ever able to figure out how to do this? I'm also trying to figure out to implement the same thread scenario. Any input would be helpful!

Re: Delete old source files

Posted: Wed Mar 22, 2023 7:39 pm
by tobias
wow, apparently I never replied to this.

Well there are at least three ways to implement it.

I think the best way is to have two jobs. One for the main backup, and the other one to delete old files.

The main backup job needs to be "Standard Copying", and it must not delete any files from the destination. So even if you delete or rename a file, it will remain on the backup.

The second job should use the mode "Move Files to Destination". Click the Configure button to specify that existing files which are identical or older on the source side should be deleted from the source side. Then go to "Masks & Filters" -> "File Age and Size" and specify File Age: older than 30 days.

So this second job will only process files older than 30 days. And it will delete those from the source if they already exist at the destination.


The second way would use a different kind of job for deleting older files, as described here: ... an-x-days/


The third way would use a PascalScript function to delete older files. The advantage would be that you only need one job. If you want this let me know and I'll write the script.