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.

4 Answers 4

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.

2
  • How does it determine if something has changed?
    – Gabe
    Feb 9, 2012 at 16:59
  • "By default Robocopy will only copy a file if the source and destination have different time stamps or different file sizes."
    – EBGreen
    Feb 9, 2012 at 17:01
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

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.

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .