Robocopy mirror, but do not use timestamps

robocopy

Is it possible to use ROBOCOPY to mirror a directory, but ignore the sources timestamps? I've tried the following:

robocopy \source\folder \destination\folder /MT:16 /PURGE /COPY:D /E

But once I press enter, the summary screen shows the options as:

Options : * . * /S /E /COPY:DT /PURGE /MT:16 /R:1000000 /W:30

How can I mirror two directories, but ignore timestamps from the source when the files are copied over?

Thanks for any insight!

Best Answer

If you don't want files changed on either the original or destination side to be overwritten in the destination combine the two options /XO /XN. New files on the original side and files deleted on the destination side will still be added to the destination folder. And, deletions on the original side will also carry over to the destination.

Using only the option /XO will allow changes made to original folder files to overwrite changed destination files. But changes in the destination will stick if there is an older file in the original folder. Those changes will be overwritten if the original side is later changed.

Robocopy has a long list of options that you may find helpful. To create a reference file run:

robocopy /? >robocopy_usage.txt