Link to home
Start Free TrialLog in
Avatar of yladmin
yladmin

asked on

RoboCopy: Clarification of /xo Switch

Thanks in advance for your assistance.

My question is this:
The robocopy switch /xo has been described this way by Microsoft, "Excludes older files"
http://technet.microsoft.com/en-us/library/cc733145(v=ws.10).aspx#BKMK_remarks

Another source has this to say "eXclude Older - if destination file exists and is the same date or newer than the source - don't bother to overwrite it."
http://ss64.com/nt/robocopy.html

Both of these resources fail to define "older" and "date" respectively, in other words, is it modified date or created date that /xo checks against?

Thanks a lot for your help!

PS. Forgive the section selection, I could not locate any categories concerning batch or scripting.
Avatar of Bartender_1
Bartender_1
Flag of Canada image

/XO : eXclude Older - if destination file exists and is the same date
                     or newer than the source - don't bother to overwrite it.

What this means, is if the file exists in both locations, and this switch is included in the command, it will compare the file in the destination, with the file in the source, to see which is newer.

You can see more about robocopy switches here:

http://ss64.com/nt/robocopy.html

Hope this helps!

:o)

Bartender_1
SOLUTION
Avatar of Bartender_1
Bartender_1
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of yladmin
yladmin

ASKER

You definitely answered my question in the 2nd post, thank you. I was wondering if I could verify this information, specifically, "by default [this] will be the date modified". It's a rather lot of mission-critical data I am interacting with so if there is one (I couldn't find it) I would love to find a source, if it's not too much trouble.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of yladmin

ASKER

This is wonderfully helpful, I am thankful for the help from both of you.
oBdA: Your clarification, sourcing, and test was exactly what I needed to proceed confidently.