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

Comments

  • 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.
Please log in to comment

Community Chosen Answer

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.

 

Answered 06/14/2013 by: mpace
Red Belt

  • Thanks I'll pass it on to the administrator we have making this copy.
Please log in to comment

Answers

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

 

Answered 02/14/2014 by: devious
Senior White Belt

Please log in to comment
Answer this question or Comment on this question for clarity