Coping files with RoBOCopy

P

Pat

When using the purge option with robocopy, is there a way
to not purge a file unless its two weeks old? I would like
to delete the file on the source after two weeks have gone
by and it's still not on the destination. This is just in
case a file was deleted from the dest. by accident.

Thank You.
 
M

Michael Bednarek

When using the purge option with robocopy, is there a way
to not purge a file unless its two weeks old? I would like
to delete the file on the source after two weeks have gone
by and it's still not on the destination. This is just in
case a file was deleted from the dest. by accident.

Try the paramter /MINAGE.

From "robocopy.doc" (Robust File Copy Utility Version 1.95):

/MINAGE:n Excludes files newer than n days or specified
date. If n is less than 1900, then n is expressed
in days. Otherwise, n is a date expressed as
YYYYMMDD.

or see "robocopy /???"
 

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

Top