LLI Wiki — My Digital Knowledge Base

Robocopy: copy only missing files

Robocopy /XO /XN /XC options to copy only files missing from the destination, with a bacpac move example.

Using robocopy to copy only the files missing from the destination, plus an example of moving large files.

Copy only missing files

robocopy <sourcepath> <destinationpath> /E /XO /XN

The net effect is that only files that do not exist at the destination are copied.

Other exclusion options

Option Effect
/XC exclude changed files
/XN exclude newer files
/XO exclude older files
/XX exclude extra files and directories
/XL exclude lonely files and directories

Example: move bacpac files

robocopy.exe H:\ F:\ appdb*.bacpac /MOV /MT:32 /R:3 /W:5 /E /COPY:DAT /V /TEE /LOG:C:\robocopy_log.txt /J
Mastodon LLIMastodon SocialFosstodon