troubleshooting Question

Robocopy command syntax for file server migration.

Avatar of Laszlo Denes
Laszlo DenesFlag for Canada asked on
Microsoft Access* Robocopy
3 Comments2 Solutions105 ViewsLast Modified:
Can someone who has used this before to migrate file servers please comment. Thanks a zillion in advance.
Trying to migrate our user file server from a physical 2008 R2 server to physical 2012 R2 server. Size of drives is the same, etc. and both servers are on the same network/subnet. The structure is as follows.
D: drive has a shared folder called users and within that we have a couple of hundred user folders (by name - no spaces) and in each user folder their is a folder called "data"  and a folder called "profile.V2'. The respective user, domain admins and one service account (for backups) all have full control over each user folder. My intention is to copy everything from \\originalfileserver\d$\users to \\newfileserver\d$\users and maintaining all the NTFS permissions per folder as well as any share permissions. The Robocopy command (based on numerous articles and tests) I am working with and I am running it from the new file server:
robocopy "\\originalfileserver\d$\users" "d:\users" /TEE /LOG+:c:\robolog.txt /MIR /copyall /zb /w:1 /r:2 /E

/E Copy subdirectories, including Empty ones.
/ZB Use restartable mode; if access denied use Backup mode.
/TEE Output to console window, as well as the log file.
/LOG+:file Output status to LOG file (append to existing log).
/R:n Number of Retries on failed copies: default 1 million.
/W:n Wait time between retries: default is 30 seconds.
/MIR MIRror a directory tree (equivalent to /E plus /PURGE).
/COPYALL COPY ALL file info (equivalent to /COPY:DATSOU).

Will this do it? Will this command copy all folders, maintain permissions (Share and Ntfs), output errors to log file, leave original folders untouched on source, allow me to rerun it a day or two later for only changed file copy, etc. Please make suggestions if I missed anything.
Join our community to see this answer!
Unlock 2 Answers and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros