Quantcast
Channel: File Services and Storage forum
Viewing all articles
Browse latest Browse all 13565

Robocopy not copying permissions for non-inherited parent folder

$
0
0

Hi

WE have a folder structure that we want to copy with robocopy. The parent folder in the structure is set to not inherit its permissions. It has custom security permissions and all the folders within it are set to inherit, so they get their permissions from that parent. 

Robocopy creates the destination folder but sets it to inherit the permissions. This causes all the child folders to have the wrong permissions. 

The only work around we've found is to create the parent folder on the destination by hand and set the permissions, but given the number of permissions, I'd like to find a solution.

We're using "robocopy c:\shares\myfolder '\\otherserver\c$\shares\myfolder' /sec /z /e"

The structure is like this;

c:\

- shares

-- myfolder <- set to not inherit permissions.

---- lots of sub folders

Any ideas why this might be ?

Olly



Viewing all articles
Browse latest Browse all 13565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>