question

SahaSaha-5270 avatar image
0 Votes"
SahaSaha-5270 asked MotoX80 answered

Robocopy from one server to another

Robocopy \\servername\d$\folder \\servername\E$\folder1\folder2\Dept\Accounting /E /ZB /COPYALL /MIR /R:0 /W:0 /V /TEE /log:"c:\temp\f_Copy.log" Is this correct?

After the copy is complete how do I do the final sink on the cut off date?

windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MotoX80 avatar image
0 Votes"
MotoX80 answered

Let's look at your switches...

/E - not needed because you have /mir
/ZB - restartable mode, shouldn't hurt, don't think I ever used it.
/COPYALL - ok
/MIR - ok
/R:0 - ok, but you will need to examine why the copy failed and fix it.
/W:0 - not needed because /r:0 doesn't retry
/V - depends on how many millions of files you have in the folders
/TEE - ok
/log - ok

Copyall will copy the NTFS permissions. That will work for AD groups and users and builtin security principals like the Administrators group. But if your source folder references local groups then on the destination server you will see a dead SID in the folder permissions.

Start small and test with a limited number of folders. The first time that you run it, the files will be copied. The next time you run it (the exact same command) it should run very fast because the /mir switch will recognize that the destination folder already contains the files/folders and there is nothing to do.


When you are ready to cut over the users, either remove the share or change the share permissions to read only so that users can't update the source folders.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.