Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I copied a huge number of files using Robocopy, and recived 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.

share|improve this question
add comment

4 Answers

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.

share|improve this answer
    
How does it determine if something has changed? –  Gabe Feb 9 '12 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 '12 at 17:01
    
Thanks so much. That's great. –  Gabe Feb 9 '12 at 17:04
add comment

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

share|improve this answer
add comment

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.

share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.