Move files from one volume to another while retaining permissions?
We're looking at migrating some shares from one disk to another, the problem we have is when we move the folders inherited permissions kick in and I'm looking for a utility or method to move files and folders from one disk to another while retaining all the permissions. Any help is always appreciated. Thank you!
-
we normally use rsync on a MAC to move lots of files from one share to another. We have a mix of MACs and PCs, both on the domain and haven't run into issues with this method. - Jbr32 11 years ago
Answers (2)
You could try using robocopy with the /COPYALL switch.COPY ALL file info (equivalent to /COPY:DATSOU). Copies the Data, Attributes, Timestamps, Owner(s), Permissions and Auditing info.
Comments:
-
Thanks I'll pass it on to the administrator we have making this copy. - GeekSoldier 11 years ago
Hi,
Here is a script I created to help me do copy jobs:
set source=\\YOURSOURCELOCATION
set destination=\\YOURDESTINATIONLOCATION
robocopy %source% %destination% /COPY:DATO /E /V /R:1 /W:1 /XO /LOG+:c:\temp\%source%-CopyTo-%destination%.log.txt
All you have to do is change "\\YOURSOURCELOCATION" and "\\YOURDESTINATIONLOCATION"
I also added logging, you need the c:\temp folder or the logs wont right.
/COPY:DATOS: the S copies folder permissions
/E: empty folders
/V: verbose for tracking in logs
/R:1: number of retries
/W:1: how long to wait till it retries (1 second)
/XO: is for attributes
/Log+: so if you run the copy job again it will just append the log file.
Below is a useful link:
http://technet.microsoft.com/en-us/library/cc733145.aspx