Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make robocopy maxage to check date Created not Date Modified?

Status
Not open for further replies.

iliyashayla

Programmer
Oct 12, 2004
1
AU
I'm running an incremental file system backup using a Robocopy MAXAGE switch as a starting date for increment.
I have bumped into a following problem:
If a file was Modified say on the 1st of October, but copied to a directory that is being backed up on the 10th of October, Robocopy with MAXAGE:20041005 would skip the file, but I need it to be copied!
In other words, how can I specify Date Created rather than Date Modified to filter my backup robocopy job?

Please, it drives me mad. MAXLAD switch is not recognised by my version of robocopy (v 1.96), but I'm not sure if it is what I need anyway.


 
. You should use the XP version of robocopy:
. You might consider using XXCOPY for greater control over time/date/size based copy criteria:
. If you use a MAXAGE value as in your example, you have asked Robocopy not to copy your October 1 files, as October 5 was the limit you specified. MINAGE would have worked in your example. MAXLAD differese from MAXAGE only in that it uses Access Date instead of Modified Date as the restriction.

Robocopy (for XP) date syntax:

MAXAGE:{days | YYYYMMDD}
Excludes files with a Last Modified Date older 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.

/MINAGE:{days | YYYYMMDD}
Excludes files with a Last Modified Date 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.

/MAXLAD:{days | YYYYMMDD}
Excludes files with a Last Access Date older 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.

/MINLAD:{days | YYYYMMDD}
Excludes files with a Last Access Date 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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top