My Robocopy Command

Quick blurb for my future self when he needs to use Robocopy to copy files from one destination to another quickly.

The below command only copies the data and the attributes but not the permissions. I had some fun issues with copying in the past from a server share so as a result I remove the permissions so I can actually delete or control the directory that I am moving efficiently.

Also, future self, remember that the purge flag is on there and it will kill anything in the destination directory that isn’t in the source.

robocopy "B:/" "C:/DestinationFolder" /W:1 /MT:128 /e /zb /purge /DCOPY:DAT /COPY:DAT /LOG+:myCopyLog.log

One thought on “My Robocopy Command

Leave a Reply

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

WordPress.com Logo

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

Google photo

You are commenting using your Google 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 )

Connecting to %s