copy permission from one server folder structure to another

New server going online almost done copying data over, is there a way to copy permission on the folder structure or do I have to create them over.
LVL 17
WORKS2011Austin Tech CompanyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dipopoCommented:
Hi,

You should be able to copy the data and the ACL complete in one go using Robocopy

Robocopy.exe /S /E /ZB /SEC

The /SEC is for security permissions
/S sub-diectories
/E Copy empty directories

ALternatively if you would not want to restart the copy activity get the ACL using ICacls.exe and pipe to text file then use this as input to recreate the ACL on new machine.

The sweetest being robocopy, everything one go.
0
becraigCommented:
robocopy /s /mir /E /SEC   (should work perfectly or try the any of the combinations below.

robocopy "flags" usage robocopy source  destination "filetype"

/sec
Copies files with security (equivalent to /copy:DAT).

/copyall
Copies all file information (equivalent to /copy:DATSOU).

Specifies the file properties to be copied. The following are the valid values for this option:

D Data
A Attributes
T Time stamps
S NTFS access control list (ACL)
O Owner information
U Auditing information

The default value for CopyFlags is DAT (data, attributes, and time stamps).


Reprinted from:
http://technet.microsoft.com/en-us/library/cc733145%28v=ws.10%29.aspx
0
Pradeep DubeyConsultantCommented:
use robocopy :
command is

robocopy “source address” “destination address” *.* /mir /sec

see below link for more options:

http://yakupkorkmaz.info/?p=12
0
ZabagaRCommented:
You're already in the middle of copying? If that's the case then you'll have to set permissions  once the copy is done. Robocopy is nice as everybody noted above but of course you'll have to restart your data copy. How are you copying? Drag and drop or command line?
Most if not all backup software will save permissions - even windows ntbackup. So aside from robocopy you can use a backup piece of software to backup, then restore to new server.

Windows default copy/move permissions behavior below:
http://support.microsoft.com/kb/310316
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.