Avatar of partnershipdev
partnershipdevFlag for United Kingdom of Great Britain and Northern Ireland asked on

Robocopy Directory Permissions


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
Storage SoftwareMicrosoft DOSNetworking

Avatar of undefined
Last Comment

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

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.

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.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes

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.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.