Is there a way to get Robocopy ONLY log changed(copied) files and folders

Gary Osborne 21 Reputation points
2022-04-28T10:49:44.42+00:00

I am using Robocopy to backup files to our server. This is great, except every session logs every file. Even those not copied. Is there a way to get Robocopy to only log files & folders it copies (this would seem to me to be an obvious feature). The /X option woudl seem to do the opposite.

Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,266 questions
0 comments No comments
{count} votes

Accepted answer
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

1 additional answer

Sort by: Most helpful
  1. Gary Osborne 21 Reputation points
    2022-05-03T07:52:08.26+00:00

    I have got to what I wanted by parsing the logfile: So...

    robocopy sourcefolder targetfolder /e /np /ndl /nfl /fp > TMPrc.log
    findstr /C:"New File" TMPrc.log > report.txt
    findstr /C:"New Dir" TMPrc.log >> report.txt
    findstr /C:"Extra File" TMPrc.log>> report.txt
    findstr /C:"Extra Dir" TMPrc.log >> report.txt

    This gives me only a list of changed files & folders in report.txt

    0 comments No comments