8

Can Robocopy be configured to only log the “errors”?

On a large copy job, I’m really only interested in knowing what files were NOT copied.

  • 4
    Try using /NFL /NDL /NP. – TheCleaner Nov 12 '13 at 14:19
  • Did you try logging to a file and feeding that file to grep (or simply "find") ? – Stephane Nov 12 '13 at 14:19
  • 1
    /NDL did remove the verbose output and show only errors & copy progress – Dinesh Rajan Aug 23 '16 at 4:22
1

It's not in the documentation that you can do this;

http://technet.microsoft.com/en-us/library/cc733145.aspx

What you could do is run your job with /v and output to a logfile /log: then write a small script to parse the log file and remove all but skipped files.

There's a nice looking script here;

http://www.chapmancentral.co.uk/cloudy/2013/02/23/parsing-robocopy-logs-in-powershell/

This will parse the log file (check the switches) and then output to a CSV which you could easily manipulate in your favorite spreadsheet program.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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