Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted (edited)

I need someone to look this over and agree or disagree as to whether it'll do what i need or if i need to change something:

Robocopy J:\Share1 H:\Share1 /e /zb /copyall /dcopy:T /r:100 /w:2 /log:C:\Robocopylog-Share1.txt

 

What i need to achieve:

An exact copy of the data that's on the source, to the destination, including ownerships, permissions and timestamps.

 

Wasn't sure if i needed to use the switches of /secfix and /timfix at all? also do i need the /mir command?

 

EDIT: In hindsight, the scripts section may have been better for this thread...but then again this is an enterprise application, i guess it works in both areas?

Edited by mrbios
Posted (edited)

Robocopy J:\Share1 H:\Share1 /MIR /COPY:DATSOU /R:3 /W:10 /XF *.tmp /Z /LOG:C:\Robocopylog-Share1.txt

 

That's what I use to copy things around.

Edited by Chuckster
  • Thanks 1
Posted

isnt that what /mir is for something like

 

robccopy c:\stuff\*.* d:\stuff\*.* /mir /r:1 /w:5

 

(so if a file wont copy retry once wait 5 seconds before retrying)

Posted

Does the destination contain any files? If it does then /mir will delete anything not found in the source.

 

That copy command looks fine to me. Personally I'd reduce the retries to at most 10. /MT:64 might give a bit of a speed boost (multithreading). /EFSRAW might be handy (encrypted files). /NP might speed things up a bit as well, no need to display progress if you keeping a log?

  • Thanks 1
Posted (edited)
Does the destination contain any files? If it does then /mir will delete anything not found in the source.

 

That copy command looks fine to me. Personally I'd reduce the retries to at most 10. /MT:64 might give a bit of a speed boost (multithreading). /EFSRAW might be handy (encrypted files). /NP might speed things up a bit as well, no need to display progress if you keeping a log?

 

Destination will be empty to start with so no files to overwrite.

 

Thanks for the performance recommendations!

 

EDIT: Ok how about this:

Robocopy J:\Share1 H:\Share1 /MIR /COPYALL /R:3 /W:10 /ZB /MT:64 /NP /LOG:C:\Robocopylog-Share1.txt

Edited by mrbios
Posted (edited)

Additional question...

 

I'm thinking about seeding the data to my new store over the weekend to get the most time consuming aspect done, but what command would i run in order to replicate only the changes that have occurred in the source to the new destination? Is this possible?

 

EDIT: Is this correct? ROBOCOPY /MIR /Z /W:5

Edited by mrbios

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...