Link to home
Start Free TrialLog in
Avatar of Nelesh_N
Nelesh_N

asked on

Robocopy between domains with a trust relationship

I've got data in my domain (domainA) which I need to copy to another domain (domainB) with which I have a two-way domain wide external AD trust.

So I have a management machine in domainA. I've got the admins in domainB to create an account for me and have given it full control to a share in domainB. On the source data in domainA I have given the account from domainB full control. Both drives mapped and I can do a manual copy between shares.

robocopy y: z: /MIR /ZB /W:5
Y: = Source
Z: = Destination

I keep getting the error:
2010/04/22 11:09:07 ERROR 5 (0x00000005) Copying File Y:\Neels.docx
Access is denied.
Waiting 0 seconds... Retrying...

I would like the NTFS permissions to be copied over also - please help. Thanks, N
Avatar of WindowsITAdmin
WindowsITAdmin
Flag of Spain image

Hi.
I have find this: In my case, I started out with full control on both the source and destination shares. The problem was that Robocopy was resetting the ACL on the destination share to a null value (nobody has permission) before it began recursing subdirectories. After some quick tests, my conclusion is that Robocopy does not handle inherited permissions. Say you are copying C:\Share1 to D:\, and C:\Share1 is inheriting its permissions from the C:\ root directory, it actually has no explicit ACL. Therefore, when you copy its ACL, you are actually copying... nothing. By copying an empty ACL to your destination your permissions are removed in the first step of the copy, and all subsequent writes to the share fail with Error 5.
You can copy the inherited permissions from the folder to the files and block inheritance and after copy enable it again.

Hope this helps.
Have a look at following post.

http://www.pcreview.co.uk/forums/thread-2852628.php

Hope this helps!
Farhan
Avatar of Nelesh_N
Nelesh_N

ASKER

robocopy "Y:\LibFin" "Z:\LibFin" /MIR /V /LOG+:"c:\robogui.txt" /R:2 /W:2
Does a mirror delete any files on the source drive?
ASKER CERTIFIED SOLUTION
Avatar of Farhan Kazi
Farhan Kazi
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial