Robocopy on Windows Server 2008 SP2 does not copy folder permissions
when using robocopy copy folders , files 1 local hard disk another, using /copyall /e /tee options, target folder not contain source folder's acl. i've tried other options such as: /copy:datsou or /secfix, made no difference.
test scenario: create folder on c:, test1. add test1's permissions local group read, e.g. backup operators. acl list should have permissions inherited c:\ plus backup operators that's not inherited. use robocopy copy test1 c:\test2, check acl on test2. backup operators missing.
it looks robocopy cannot override target folder's permissions inheritance, folder retains parent folder's acl.
i've disabled user access control in troubleshooting problem.
to add issue, there's workaround can used ensure target folder's acl same source folder's acl. it's 2 step process.
1) use xcopy source_folder target_folder /i /e /x /t - lays down directory structure including acls
2) use robocopy source_folder target_folder /copyall /secfix /e - copy on directories , files, enforcing files receive parent folder's acl. target_folder's acl remain intact, unaltered xcopy command.
the end result: target_folder acl identical source_folder acl, files copied target_folder will inherit acl parent folder. both source , target folders , files acls identical.
robocopy should both steps, doesn't. i've tested scenario on bare-bones windows server 2008, physical , virtual machines.
darryl miller
hi
fyi there kb article available may interested in
http://support.microsoft.com/kb/979808
also usage of robocopy
http://technet.microsoft.com/en-us/library/cc733145(ws.10).aspx
thanks
jay
Windows Server > File Services and Storage
Comments
Post a Comment