Robocopy –>Logging only differences

Hi Readers,

One of my team members stucked in an issue with robocopy , he has to compare  millions of files

on one server to another , issue he was getting :- excessive logging (log file is growing very rapidly & becoming huge in size)

So as a slotution what we have done is piped the robocopy with find command, see the below example:

robocopy E:\ M:\ /mir /copyall /r:2 /w:1 /zb /fp /xd “Program Files” “c6db64bd3144db1e68aa195e13cc9a” “MSOCache” /v /ts | find /i /v “same” >> D:\robocopy_logs\Edrive\log_170311_1.txt

Here we have excluded the lines in the logs where word “same” is present, by doing this we were able to reduce the file size to very small.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s