4

I copied a huge number of files using Robocopy, and received a note at the end that two files failed. I didn't set a switch to save a log file.

Is there a log file saved in a default location automatically? I'd obviously prefer not to re-copy everything, to get this information.

Flyk
  • 1,549
Gabe
  • 41

4 Answers4

5

Robocopy does not keep a default log file. It does however only copy files with differences by default. So if you tried the same copy again it would skip the ones that had already successfully copied.

EBGreen
  • 9,395
3

Use the V switch when running robocopy

/V : Produce Verbose output log, showing skipped files.

You may also want to include this switch

/FP : Include Full Pathname of files in the output

More robocopy command line options

Moab
  • 58,308
3

One thing you may find useful is to try the copy again with the /L switch. That switch is similar to the -n/--dry-run switches in rsync - it generates a log of what would happen but doesn't actually copy anything. It's nice because it's much quicker, non-destructive, and can be quite versatile when combined with other switches like /V, /LOG:file and /LOG+:file.

ajk
  • 551
  • 3
  • 5
2

If you want robocopy to create a log, you have to specify a log file with the /log:[filepath] parameter. I usually pair this with the /tee switch, so I see progress on the console as well.