Robocopy, purge, and minlad

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

Does the minage or minlad switch work with purge?

If I delete a file on my source, I'd like it to stay on my destination
for at least 30 days. So here is what I'm using for backing up:

To do my initial backup:
robocopy "c:\Other Pictures" w:\BACKUP-OtherPics /E /ZB /LOG:%_LOG%
/NP /TEE

To purge everything that no longer exists on the source EXCEPT for
those files less than 30 days old (or a LAD of less than 30, I've
tried both MINAGE and MINLAD)
robocopy "c:\Other Pictures" w:\BACKUP-OtherPics /NOCOPY /E /ZB
/MINLAD:30 /PURGE /LOG+:%_LOG% /NP /TEE

But this doesn't work. The extra files on the destination get purged
no matter what the age or lad is.

Is this even possible?
 
Back
Top