Robocopy, purge, and minlad

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?
 
P

Paul R. Sadowski [MVP]

Joe said:
Does the minage or minlad switch work with purge?

To the best of my knowledge Purge can not be qualified, which makes sense in
a way.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Robocopy quotation marks erro 3
Robocopy 9
Robocopy 13
OT: Any Robocopy users here? 2
Robocopy repeatedly updates files on remote server 2
SyncToy vs RoboCopy 3
robocopy error 5
robocopy - XP kit 2

Top