I have a batch file:
robocopy c:\ "v:\changes" /s /xo /purge /maxage:30
This backs up all files that have changed within 30 days, and is used between real backups.
If a file is deleted in the source, it's deleted in the backup.
The problem is that when it runs, if a file is older than 30 days old, robocopy ignores the file if older than 30 days, so it *never* gets deleted from the destination.
Is there a way to get robocopy to do this too, or do I need a separate utility to go thru each destination directory and delete if over 30 days?
robocopy c:\ "v:\changes" /s /xo /purge /maxage:30
This backs up all files that have changed within 30 days, and is used between real backups.
If a file is deleted in the source, it's deleted in the backup.
The problem is that when it runs, if a file is older than 30 days old, robocopy ignores the file if older than 30 days, so it *never* gets deleted from the destination.
Is there a way to get robocopy to do this too, or do I need a separate utility to go thru each destination directory and delete if over 30 days?