Link to home
Start Free TrialLog in
Avatar of Robert S
Robert SFlag for United States of America

asked on

Robocopy

Using Windows Server 2008 R2 Standard, I am trying to copy all the files and folders from \\Source\Atlanta to \\Target\Atlanta.  Using Robocopy, what would be the command/switches I use?  I tried

robocopy \\source\atlanta \\target\atlanta /e /mir /xa:h /r:10 /w:10

the files copied but the security permissions did not.  I inserted /sec and still security permissions didn't copy.  I built a server for our Atlanta office so I need to copy the Atlanta shares to the Atlanta server then ship the server to Atlanta.  I would like to try the command now, then do it again the day before I ship it which could be 2 weeks from now.  please help
Avatar of Wilder_Admin
Wilder_Admin
Flag of Germany image

The best is to use a gui in front of robocopy makes your life easier. http://yarcgui.wilkes.es/ only as a example.
In the gui all options are explained.
ASKER CERTIFIED SOLUTION
Avatar of amac81
amac81

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Emmanuel Adebayo
Hi

robocopy \\source\atlanta \\target\atlanta /MIR /E /Z /LOG:C:\Robocopylog.txt /TEE /R:2 /W:0

/MIR Mirrors a directory tree
/E Copies all subdirectories including empty ones.
/Z Copies files in restartable mode (that is, restarts the copy process from the point of failure).
/LOG: Generates a log file name robocopylog.txt
/TEE Logs to file as well as to the console
/R:0 Number of times to retry copying a locked file
/W:0 Time in between retry attempts

For more information, browse to http://www.giveandtake638.com/it-system-administration/use-robocopy-movemigrate-foldersdirectoryies-one-server-another-another-location

Regards
Avatar of Robert S

ASKER

wilder admin gui is good too but I don't like to install any unnecessary stuff on the server, I don't wanna run this command from a desktop/laptop

Amac81 I received an error message ERROR: you do not have the manage auditing user right.  You need this to copy auditing information.  I am logged in as an admin

Emmanuel files did copy I drilled down a few folders and checked security and security doesn't match the source.  these 2 servers are in the same domain.
Avatar of amac81
amac81

That is odd if you're admin, but try this without the copyall (thus without the Auditing info)

robocopy \\source\atlanta \\target\atlanta /e /copy:DATSO /mir /xa:h /r:10 /w:10