Canada  united states of america usa  linkedinfacebook   Call Us Today: 866.646.6461

Robocopy - copy only missing files

Q. I have 2 directories that I'm combining (eg: from 2 backups), some files are newer, some are older, butI only want to copy the missing files to the destination. How do I do that?

A. Robocopy has a few flags that are useful for ths situation:

robocopy C:\Source D:\Destination /E /XC /XN /XO /R:1 /W:1

Where:

/e Copies subdirectories. Note that this option includes empty directories

/xc Excludes changed files.

/xn Excludes newer files.

/xo Excludes older files.

R and W are just retry and wait (in case a file is locked). This is not neccessary in this situation, but we include it as a force of habit, to skip unreadable files.

ALT IT Consulting is an IT service company, providing support for Central New York, South Florida and Dellaware Valley (Philadelphia). Contact us for reliable IT support.

Last updated Aug 12, 2019