Jump to content

Recommended Posts

Posted

I have previously Archived some group files, but for some reason not all the permissions copied across properly. Now all I want to run is Robocopy to copy the permissions of the folders but not copy the contents. The switch I have used is /mir /sec /secfix /xo /xn /xc but if I use that it copies the contents also. If I drop the /mir /sec it doesn't copy anything.

 

I'm not sure if I have got it configured incorrectly but I thought I could just copy the folder permissions by using /xo -exclude older, /xn - exclude newer, /xc -exclude changed and to be doubly sure I also tried /xx exclude extra files directories but still with the same result.

 

Can anyone provide me with the correct switches?

Posted (edited)

I don't think you need the /mir according to this KB? How to Use Robocopy to copy security information without copying any file data

 

Not tried it though so probably try with a small test folder first. :)

 

It is a little old though so may have changed...

 

Edit: I should read properly before replying as you already tried what the KB says, so you should be right with what you're doing according to it.

Edited by Cache
Posted

OK, I've just modified the switches to the following - /mir /sec /secfix /xf "*.*" with the idea being that I don't want to move any files so I have excluded ALL files with *.* which should then just copy the permissions of the folders over. All files should have inheritance on so they should inherit the correct settings. I've tested this on a test folder and it seems to work.

 

This has only become about because someone was looker for some files which have been moved to the archive area where the permissions weren't copied correctly and they couldn't find their files. Can someone just cast their eye over it before I run it on our group drive as I don't want to make things worse!!

Posted
Just thought I'd bring some update on this as I think one of the reasons I was having an issue is that I was testing the switches on my Windows 8 machine and it needs to be running on a Server 2003 box. As such I think the switches are slightly different due to the versions of Robocopy being used. I thought I'd done the same in the past but obviously not. Best make sure I test thing properly next time :getmecoat:
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...