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.
Laszlo DenesAsked:
Who is Participating?
 
Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
I just did a SBS2008 to 2016 migration and this is the command I used:

robocopy \\SRV0\F$\DML F:\ServerFolders\DML /E /B /R:3 /COPY:DATSOU /MIR /LOG:C:\Logs\Results-DML.txt
@PAUSE

 Execute this from the destination server.

Jim.
0
 
Michael PfisterCommented:
Sometimes had problems copying audit information, I'd use /COPY:DATSO.
Also I'd add /NP so the log file won't be filled with useless progress indication.
0
 
Michael PfisterCommented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.