We help IT Professionals succeed at work.
Get Started

Robocopy switch question about /xn and /xo

7,004 Views
Last Modified: 2012-05-09
We use robocopy to sync files back and forth between two file servers running on different operating systems.  The robocopy options I'm using are:
/E /XO /XN /X /R:1 /W:10

So, the /xo and /xn switches are supposed to exclude "old" files and "new" files, however in the output , I still see files being copied that are showing as "new file".  My hope is that these files are actually "changed" files (since the exclude change switch is not being used here).  Can anyone confirm this?

What we're trying to accomplish is a copy in which only new or updated files/folders are copied and no others.  This is highly critical as the target file server is being used by several hundred people and the last thing we want to do is make a mistake in our switches causing some files or parts of files to be overwritten by anything other than a file that is updated or a completely new file.  Thank you.
Comment
Watch Question
CERTIFIED EXPERT
Distinguished Expert 2020
Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE