I'm currently doing a file server migration using Robocopy and I've copied 1 of the folders and its subfolders+files to new server. I used the following commands to copy the folder to new server with security permissions.
robocopy \\source\share D:\share /e /zb /copy:DATSOU /r:3 /w:3 /log:D:\log\folder.log /V /TEE
After the copy, we have modified some of the folders and files permissions manually in new server. And because of this migration is still in progress so I would have to do another round of copy by using /MIR or without /MIR. At the same time, users are still creating new files in the source server.
So, I would like to know if I'm going to run another round of robocopy to keep the same set of data and preserve the permission in new server but also copy the permission of new files in source server. What switches could I use to achieve the following:
Preserve the modified permissions in new server
Copy the newly created files in source server with security permission
Because I have tried to do a simulation and run the command with /MIR or without /MIR. Both robocopy commands will replace the security permission in the new server. Have gone through the switches of /xc /xn but is unsure whether it will apply to folder as well or just only files. If I remove S from copy:DATSOU it won't copy the security permission of new files in source server.
Appreciate if anyone could help on this.