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
LVL 1
Nelesh_NAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

WindowsITAdminCommented:
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.
0
Farhan KaziSystems EngineerCommented:
Have a look at following post.

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

Hope this helps!
Farhan
0
Nelesh_NAuthor Commented:
robocopy "Y:\LibFin" "Z:\LibFin" /MIR /V /LOG+:"c:\robogui.txt" /R:2 /W:2
0
Nelesh_NAuthor Commented:
Does a mirror delete any files on the source drive?
0
Farhan KaziSystems EngineerCommented:
No, but it may delete files at the destination.
If files contained in the destination do not exist in the source, they are purged.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.