We help IT Professionals succeed at work.
Get Started

Robocopy command syntax for file server migration.

Laszlo Denes
Laszlo Denes asked
on
103 Views
Last Modified: 2018-02-07
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.
Comment
Watch Question
President / Owner
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2017
Commented:
This problem has been solved!
Unlock 2 Answers and 3 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE