×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

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

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

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

(OP)
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.


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

If you look here
http://www.ss64.com/nt/robocopy.html
You have all the robocopy commands. You might find one that you are looking for.

---
Make the best use of what is in your power, and take the rest as it happens.

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

. You should use the XP version of robocopy:  http://www.microsoft.com/downloads/details.aspx?Fa...

. You might consider using XXCOPY for greater control over time/date/size based copy criteria:  http://www.xxcopy.com/index.htm

. 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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close