I have been using robocopy to migrate all data on an old file server to the new file server. I have been using the following switches:
robocopy \\oldserver\fileshare \\newserver\fileshare /E /ZB /DCOPY:T /COPYALL /R:1 /W:1 /V /TEE /LOG:Robocopy.log
These shares include home drives. I am only moving users to their home drives on the new server one department at a time, or one OU at a time. I'm worried about the following:
User1 is in Accounting OU.
User2 is in Management OU.
They both have home folders. Robocopy has copied all data from old to new. Monday night I select all the users in Accounting OU in AD and redirect their home drives to the new server.
User 1 modifies a file - Document1.txt. This is save in her home drive on the new server.
Tuesday night I am moving the users from Management OU over to their home drive on the new server. So, I run robocopy again to copy any new files to the new server that User2 may have saved on their home drive.
I'm not sure what will happen to User1's Document1.txt. Will robocopy recognize that the timestamp on Document1.txt on the new server has changed and is newer than the Document1.txt file on the old server and not copy it? Or will it replace Document1.txt with the old version from the old server?
What is the best way to accomplish this?