Avatar of Laszlo Denes
Laszlo Denes
Flag for Canada asked on

Robocopy command syntax for file server migration.

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.
Microsoft Access* Robocopy

Avatar of undefined
Last Comment
Michael Pfister

8/22/2022 - Mon
SOLUTION
Michael Pfister

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Jim Dettman (EE MVE)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Michael Pfister

Shares/share permissions won't be copied by robocopy, only NTFS.
You'll have to recreate the shares
Any yes just rerun the command to copy the delta only from source to target.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes