Jump to content

Hello, I am trying to transfer files from a Windows disk to a NAS share. I am attempting to use the robocopy command in PowerShell and am having issues when using the /COPYALL argument, as I need to copy Active Directory file permissions.

Below is the command im running as well as the script output. I've tried it in both Non Admin PowerShell and Administrator PowerShell. It is based off of this Link from atomicit.ca

Quote

PS C:\> robocopy U:\Home \\NAS-NAME\Public\Home /E /ZB /DCOPY:T /COPYALL

-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows
-------------------------------------------------------------------------------

  Started : Thursday, April 6, 2023 9:57:16 AM
   Source : U:\Home\
     Dest : \\NAS-NAME\Public\Home\

    Files : *.*

  Options : *.* /S /E /COPYALL /ZB /R:1000000 /W:30

------------------------------------------------------------------------------

          New Dir          0    U:\Home\
2023/04/06 09:57:16 ERROR 1 (0x00000001) Copying NTFS Security to Destination Directory \\MID-NAS\Public\Home\
Incorrect function.


------------------------------------------------------------------------------

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         1         0         0         0         0
   Files :         0         0         0         0         0         0
   Bytes :         0         0         0         0         0         0
   Times :   0:00:00   0:00:00                       0:00:00   0:00:00
   Ended : Thursday, April 6, 2023 9:57:16 AM

When I remove the /COPYALL argument, it begins copying folders and files. The issue is Explicit permissions do not copy, and I need them to. (I dont want to check every single file and its permissions)

 

The source is from Windows server. There is one Disk split into to main partitions, C:\ and U:\. C:\ is what you would expect it to be. U:\ Is where the file share is located, with Shares at the top of the directory and subfolders and files further down the directory. 

The Destination is a Synology NAS with a Shared folder created. The Synology is joined to the Domain, and I have Read\Write permissions enabled for Domain Admins. 

 

Thoughts? I would really appreciate the help.

 

Thanks

 

Breaking things 1 day at a time

Link to comment
https://linustechtips.com/topic/1499114-robocopy-help/
Share on other sites

Link to post
Share on other sites

Synology runs on Linux and Linux doesn’t understand Windows ACLs.  This KB article from Synology may help, assuming you have the infrastructure to support it.

https://kb.synology.com/en-us/DSM/tutorial/How_do_I_copy_files_along_with_their_domain_ACL_privilege_settings_from_a_Windows_server_to_my_Synology_NAS

Death before dishonour! Nothing before coffee!

Link to comment
https://linustechtips.com/topic/1499114-robocopy-help/#findComment-15880905
Share on other sites

Link to post
Share on other sites

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

×