Can anyone here please share me the Robocopy scipt to fix the file ownership and the directory ownership so that the owner from the source file server (Server 2008) will be the same as the target or the new file server ?
here's what I use to perform the files initially from the target server (2012 R2):
robocopy.exe "\\OldFileServer\homedirectories" F:\Users *.* /e /xo /XA:O /zb /copyall /dcopy:DAT /secfix /sec /r:0 /w:0 /np /nfl /ndl /tee /log:"C:\Temp\robocopyUsers.log"
With the script above, the directory owner and the file owner is the NewServer2012R2\Administra
tors (the local admin) instead of the individual users like what it says on the source file server.
one of the experts here suggest me to use this script below:
robocopy.exe "\\OldFileServer\homedirectories" F:\Users *.* /MIR /E /Z /SECFIX /SEC /XO /XJ /Z /B /ZB /COPY:DATSO /MIR /DCOPY:T /R:0 /W:0 /NP /NFL /NDL /TEE /LOG:"C:\Temp\robocopyUsers.log"
But I with the script above, the data is all overwritten again from the beginning thus making it very long to complete.
Can anyone please help me ?