Robocopying an entire share from server to server gets error 2


  1. Posts : 1
    64
       #1

    Robocopying an entire share from server to server gets error 2


    I've run into an issue several times when trying to copy an entire share from one server to another. In this case, it happens to be from a Mac to a Windows server (just in case that's relative to the problem). The command I was using is:

    robocopy \\MacDASD\Boards \\SRVRWIN78\Boards /S /FFT /XJ /R:1 /W:5 /V /TS /TEE /L

    This runs fine, showing all the files and subfolders from the Mac's 'Boards' share that would have been copied. However, once the '/L' is removed to actually run the command I get 'ERROR 2 (0x00000002) Accessing Source Directory \\MacDASD\Boards. Running Robocopy for each of the subfolders under the 'Boards' share, however, works fine. It seems it just can't do the entire share at once. Any help would be appreciated.
      My Computer


  2. Posts : 1,049
    Windows 7 Pro 32
       #2

    A quick search indicates error 2 could be:
    - Some Extra files or directories were detected. Examine the output log.
    - The system cannot find the file specified.

    You could try to increase the retry parameter from /R:1 to a higher value.

    I also found this but I don't know if it's correct or not, nor if error, exit codes and errorlevel are equal values:
    Note also that bit 0x02 simply indicates that there are files at the destination that are not present at the source. This will happen if the /E switch is used and files have been deleted from the source since a previous copy was taken. It should not happen if the /MIR switch is used because that should delete files at the destination to mirror the source (but I haven't tested this).
    Getting ROBOCOPY to return a "proper" exit code? - Super User
      My Computer


  3. Posts : 1
    Windows 7 Pro 64bi
       #3

    I received the same issue and could not find the solution. It turns out that the default for /DCOPY is /DCOPY:DA which tries to read NTFS Stream data, and it seems that the Mac or other linux based Samba shares will not respond nicely when robocopy request that data on the root of the share. By doing /DCOPY:AT, this is avoided and the copy should go successfully.

    Just wanted to share this since I was having the exact same problem when trying to copy from a Synology NAS with RoboCopy.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:16.
Find Us