This is the commant to rule them all:

I usually map the old fileserver shares to Z:\ and use E:\ on the new server . Make sure you got src and dst correct! Otherwise you will lose a lot of data. The following command compares all files from the source to the files of the destination. It deletes files that are present on the dst but not on the src.

robocopy "Z:\Files" "E:\Files" /e /zb /copy:DAT /r:3 /w:3 /V /log:c:\temp\Files.log /V /NP /MIR

If you want to preserve the permissions, you can use the following command

robocopy "Z:\Files" "E:\Files" /e /zb /copy:DAT /r:3 /w:3 /V /log:c:\temp\Files_secfix.log /V /NP /MIR /SEC /SECFIX
Last modified: December 17, 2020

Author

Comments

Write a Reply or Comment

Your email address will not be published.