+ Post New Thread
Results 1 to 6 of 6
How do you do....it? Thread, Robocopy Permission only in Technical; I have previously Archived some group files, but for some reason not all the permissions copied across properly. Now all ...
  1. #1


    Join Date
    Sep 2008
    Posts
    1,786
    Thank Post
    329
    Thanked 260 Times in 212 Posts
    Rep Power
    120

    Robocopy Permission only

    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?

  2. #2
    Cache's Avatar
    Join Date
    Apr 2008
    Location
    Cumbria
    Posts
    1,228
    Thank Post
    462
    Thanked 178 Times in 175 Posts
    Blog Entries
    3
    Rep Power
    65
    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.
    Last edited by Cache; 4th June 2014 at 12:22 AM.

  3. #3


    Join Date
    Sep 2008
    Posts
    1,786
    Thank Post
    329
    Thanked 260 Times in 212 Posts
    Rep Power
    120
    That's what I thought, but testing it on some smaller folders results in copying the contents too OR not copying permissions.

  4. #4


    Join Date
    Sep 2008
    Posts
    1,786
    Thank Post
    329
    Thanked 260 Times in 212 Posts
    Rep Power
    120
    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!!

  5. #5


    Join Date
    Sep 2008
    Posts
    1,786
    Thank Post
    329
    Thanked 260 Times in 212 Posts
    Rep Power
    120
    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

  6. Thanks to penfold from:

    Cache (4th June 2014)

  7. #6
    Cache's Avatar
    Join Date
    Apr 2008
    Location
    Cumbria
    Posts
    1,228
    Thank Post
    462
    Thanked 178 Times in 175 Posts
    Blog Entries
    3
    Rep Power
    65
    Pleased you got it sorted anyway.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 0
    Last Post: 14th October 2013, 09:53 AM
  2. robocopy but only if older
    By glennda in forum Scripts
    Replies: 10
    Last Post: 10th January 2013, 11:56 AM
  3. Replies: 3
    Last Post: 26th May 2010, 03:38 PM
  4. read only permissions on server 2K3
    By beeswax in forum Windows
    Replies: 4
    Last Post: 25th April 2006, 01:12 PM
  5. Keep them permissions!
    By woody in forum Windows
    Replies: 5
    Last Post: 2nd August 2005, 11:15 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •