/build/static/layout/Breadcrumb_cap_w.png

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!


1 Comment   [ + ] Show comment
  • 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)

Posted by: mpace 11 years ago
Red Belt
1

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
Posted by: devious 10 years ago
Senior White Belt
0

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

 

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ