Link to home
Start Free TrialLog in
Avatar of MJB2011
MJB2011

asked on

Robocopy update acl rather than copy?

Hi All,

Im currently using the following script to migrate large areas of data from one server to another. My problem is that i want to do the initial data copy then apply some permission changes and then continue to run the copy nightly without wiping the changes made.

At the moment this isnt happening. As soon as i run the script it is reverting the ACL back to original.

My script is as follows:

Robocopy.exe "\\server1\share" "\\server2\share" /COPYALL /MIR /PURGE /z /r:0 /w:0 /np /LOG:C:\temp\robolog.log /ndl /tee

Is there anyway i can merge the security ACL rather than copying over exisiting?

Avatar of Nik
Nik
Flag of Croatia image

Have you tried the /SEC switch?
Avatar of MJB2011
MJB2011

ASKER

That just copies the security does it not?
ASKER CERTIFIED SOLUTION
Avatar of Nik
Nik
Flag of Croatia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MJB2011

ASKER

Perfect! - made updated ACL, took out the /COPYALL section of the script. Ran again and it left the security in place.

Thanks
Avatar of MJB2011

ASKER

I've requested that this question be closed as follows:

Accepted answer: 0 points for MJB2011's comment http:/Q_27478495.html#37238251

for the following reason:

Fixed
Well, I'm glad it worked but I don't understand why didn't you accept my answer then?
Avatar of MJB2011

ASKER

Incorrectly closed.
Avatar of MJB2011

ASKER

Sorry incorrectly closed. Adding points now,
NP, Thanks!