Robocopy Command


  • It's so strange when I use the robocopy command: robocopy D:\test C:\test /s /copy:dsatou /r:10 /w:30 /zb /np
    want to copy the test folder,especially including its ACLs, after completed, but I find the ACLs not copy successfully.

    That's why? I have choose the copy:all, why ACLs are missing ?

    No pains, No gains

    Saturday, September 08, 2012 1:58 AM


All replies

  • Check the complete capability and usage of robocopy here:


    Saturday, September 08, 2012 3:20 AM
    • Marked as answer by Kevin_Lue Sunday, September 09, 2012 3:12 PM
    Saturday, September 08, 2012 6:04 AM
  • Try the below and see if it copies the ACL?

    robocopy D:\test C:\test /s /copyall

    if it works, try:

    D:\test C:\test /s /copyall /r:10 /w:30 /zb /np

    Let's see if we can isolate the issue/whether there is a conflict with other parameters. :)

    Jabez Gan [MVP] - Contributing Author for: (Sybex) MCTS: Windows Server 2008 Applications Infrastructure Configuration Study Guide: Exam 70-643

    Saturday, September 08, 2012 9:27 AM
  • Really appreciated for your instruction.

    It really works according to 1st clue.

    But it still left a strange thing, why the migrated parent folder not be granted the relevant permission, e.g. I wanna migrate the e:\test\1.folders to d:\test\1.folders as well as its subdirectories, the parent folder"test" not obtains right ACLs from the original folder, but its subfolders get it successfully.


    robocopy <Source> <Destination> /e /sec

    Ex. robocopy e:\test d:\test /e /sec

    Finally, I add the ACLs by hands. Thanks.

    No pains, No gains

    Sunday, September 09, 2012 3:23 PM
  • Hi Kevin!

    Try to apply the same command, but request the log file to check the result. In your case add the following at the end:


    • Replace x:\LogACL.txt with the path where you want the TXT log.
    • Check the generated log file to see results.


    Pablo Ariel Di Loreto
    IT Consultant

    This posting is provided "AS IS" with no warranties and confers no rights! Always test ANY suggestion in a test environment before implementing!

    Monday, September 10, 2012 5:03 AM