|
|
http://setacl.sourceforge.net/html/examples.html
http://www.bog.no/index.php?option=com_content&view=article&id=2:how-to-backup-ntfs-acl
| Written by Administrator | | Friday, 26 February 2010 12:42 | Copy/backup/document ACL with SetACL.exeThis method works when you just want to copy ACLs without the hole file. It seems like xcopy just works with the hole file, and Robocopy doesn't work over shares. At least I haven't got it working...
Download SetACL from setacl.sf.net and put it in a folder that is in your PATH (eg. /windows/system32)
SetACL.exe -on "\\server1\share" -ot file -actn list -lst "f:sddl;w:d,s,o,g" -rec cont -bckp "f:\setacl-liste.txt"
Creates a complete listing of DACL, SACL, owner and primary group in SDDL format of the directory '\\server1\share1\users' and all sub-folders. The listing is stored in unicode format in the file specified.
When you need to copy this ACLs to another server:
Open f:\setacl-liste.txt > "Replace All" from Server1 to Server2 and do a restore from the new file.
SetACL.exe -on "dummy entry" -ot file -actn restore -bckp "f:\setacl-liste-srv01.txt"
Restores all (!) security descriptor data (DACL, SACL, owner, primary group) from the backup file to its original location.
BEWARE: If you have the appropriate user rights (usually, being a member of the administrators group on the target system is sufficient) ALL data in the security descriptor is overwritten!
Comment: Only data contained in the backup file is overwritten, ie. if you create a backup of the SACL only, when you restore it, the DACL, owner and primary group are left unchanged!
| | Last Updated on Friday, 30 April 2010 13:31 |
|
|