2

I'm cloning a directory with robocopy. My intention is cloning everything, purging extra files in the destination and also overwriting files that are the same according to size and timestamp (/IS option)

My command is & ROBOCOPY $SourcePath $DestinationPath /MIR /IS /R:2 (I'm using PowerShell)

-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows
-------------------------------------------------------------------------------

Started : Source : C:\A Dest : C:\B

Files : *.*

Options : . /S /E /DCOPY:DA /COPY:DAT /PURGE /MIR /IS /R:2 /W:30



           Total    Copied   Skipped  Mismatch    FAILED    Extras
Dirs :        22         0         0         0         0         0

Files : 234 232 2 0 0 0 Bytes : 80.82 m 76.88 m 3.93 m 0 0 0 Times : 0:00:00 0:00:00 0:00:00 0:00:00 Ended :

I don't understand why there are 2 skipped files - also I'm unable to find mention of this issue on the internet.

I'm launching this command in a remote PowerShell session. I'm not sure if it's relevant but this seem to happen especially in the remote session.

  • In the detailed output all but two files have status Same and no progress indicator.
  • Two files have status Older and the copy progress indication 0%-100%. So it seems only these two have been copied.

This is apparently the opposite of ROBOCOPY report above so I'm a bit confused.

Thank you very much for the help!

smv
  • 125
  • 5

1 Answers1

1

You also need to add /it option to include tweaked files.

smv
  • 125
  • 5