Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Robocopy Not Copying FIle Permissions Correctly

Posted on 2013-05-28
7
Medium Priority
?
1,673 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
LVL 12

Expert Comment

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

Accepted Solution

by:
Joseph Daly earned 2000 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

Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

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…
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
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 give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

715 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