On Thu, Jun 16, 2011 at 9:31 PM, Level 5 Lists <[email protected]> wrote:
> I have a client that we need to migrate about 2tb of data. I recently used
> xcopy gui but it didn’t seem to bring a lot of permissions over and I had to
> go back through and redo it.
ROBOCOPY.
Use the /COPYALL switch to include DACLs (permissions), along with
everything else file-related (SACLs (auditing) might be of interest).
My usual command line for something like this is:
ROBOCOPY /E /COPYALL /DCOPY:T /NFL /NDL /R:0 /B
/E = Copy subdirs, including empty ones.
/DCOPY:T = For directories, copy timestamps. Otherwise all the
directories end up showing a last modified of today.
/NFL /NDL = I suppress file and directory lists because I just want
to know about problems. I already know it's going to be copying
files. Silence is golden. But if something goes *wrong*, I want that
to stick out, and not immediately scroll off the screen.
/R:0 = In most cases, I don't find retries to be useful, so I
disable them. Usually if a file can't be copied trying again in 30
seconds won't help, and the delay slows everything down considerably.
/B = Request "backup semantics". That preserves the "last accessed"
timestamps on the originals.
-- Ben
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin