Link to home
Start Free TrialLog in
Avatar of partnershipdev
partnershipdevFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Robocopy Directory Permissions

Hi,

We currently use Robocopy to archive files from our live file server to an archive server for files/folders that are older than a year old. For some reason the /SEC parameter hasn't always been a success, in particular on the folder permissions. Is there a way I can use Robocopy to compare folder permissions of the live server and mirror them to the archived version without actually copying folders?

Kind Regards
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

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 partnershipdev

ASKER

I have just tried this but it is ignoring any permissions I deliberately add to the live folder to test, and keeping whatever permissions the folder has on the archive server.
Avatar of oBdA
oBdA

Are you only testing this with the source folder? I've noticed that robocopy seems to have problems copying the ACLs from the root to the target folder; subfolders will then be processed as expected.
Which version of robocopy are you using?
We're using XP010 according to the text output. I will try to move up a level in the subfolders and let you know my findings. Thanks for your help thus far.
Okay, it is only processing the top level folders and not subfolders, is it /S to include subfolders or something similar?
D'oh. Yes. I was so concentrating on excluding files ...
some older versions of robocopy had a /SECFIX switch that would only copy permissions to the destination.