Solved

Robocopy Not Copying FIle Permissions Correctly

Posted on 2013-05-28
7
1,546 Views
Last Modified: 2013-05-28
I have a Windows 2008 R2 server that runs an automated robocopy script to copy a folder (and all sub folder/files) to another drive on the same server. On a previous 2008 R2 server this worked perfectly and I can't figure out what changed (and unfortunately the old server is no longer around).

Here's the robocopy command I run:
Robocopy.exe C:\folder M:\folder /E /R:3 /W:0 /COPYALL /TS /FP

I was under the impression that /COPYALL would grab all the permissions and assign them correctly.

Has anyone had this issue/know what I should be looking for on my server? The folders on the C drive are still correct after the move, even though they're not on the destination folder.
0
Comment
Question by:brendan-amex
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 12

Expert Comment

by:Chris
ID: 39201863
All the switches look good to me.

Are you sure the missing permissions aren't inherited from a folder at a higher level?
0
 
LVL 15

Expert Comment

by:jerseysam
ID: 39201868
Have you ever used the robocopy GUI.

that way you can set the permissions correctly

See:

http://technet.microsoft.com/en-gb/magazine/2006.11.utilityspotlight.aspx
0
 
LVL 35

Expert Comment

by:Joseph Daly
ID: 39201874
Id suggest throwing the /SEC switch in there.

Robocopy.exe C:\folder M:\folder /E /R:3 /W:0 /SEC /COPYALL /TS /FP
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 12

Expert Comment

by:Chris
ID: 39202018
/COPYALL already includes /SEC
0
 
LVL 35

Accepted Solution

by:
Joseph Daly earned 500 total points
ID: 39202045
I understand it is supposed to be part of copyall however I have had issues in the past with that as well. Which is why when I use robocopy I will add the /SEC command.

If I am mirroring a directory my go to command is /MIR /SEC /COPYALL /ZB
0
 

Author Comment

by:brendan-amex
ID: 39202062
/ZB seems to work, but so does /B.

Can you explain what the heck restartable mode and backup mode does?

Thank you for the help though!
0
 

Author Closing Comment

by:brendan-amex
ID: 39202291
Thanks the ZB works, although I'm not sure what restartable mode and backup mode does!
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question