Robocopy directories and permissions between server 2003 and 2012

Looking to use below command

To copy all contents including empty directories of SourceFolder to DestinationFolder:

Robocopy C:\SourceDir C:\DestDir /E

With ROBOCOPY <Source> <Target> /E /Copy:S /IS /IT

As per https://social.technet.microsoft.com/wiki/contents/articles/1073.robocopy-and-a-few-examples.aspx#Simple_copy

Haven't used Robocopy for a good while, maybe 8 years but current AD setup i've inherited is in a huge mess

Where is the best machine to use robocopy from (I'm guessing the 2012 server) and do all directories have to be shared to my admin account in order for it to work?
LVL 1
Indie101Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

NVITEnd-user supportCommented:
Robocopy C:\SourceDir C:\DestDir /E is ok to use. Just note that existing files in the destination, if any, are not erased. This would be useful for an archive type destination.

Are you moving the files to another server or share? If so, you may want to make an exact "mirrored" copy. For that, you can use:
ROBOCOPY <Source> <Target> /Mir
The /MIR switch erases existing files in the destination, if any.

ROBOCOPY <Source> <Target> /E /Copy:S /IS /IT
That refreshes the file security info, i.e. permissions, for all files, without copying any files. This would usually be used if you copied the files earlier but now you just want to refresh the security info. http://blogs.technet.com/b/filecab/archive/2008/07/31/robocopy-mir-switch-mirroring-file-permissions.aspx
0
Indie101Author Commented:
Thanks is there a best machine to use robocopy from

I was going to use 2012 server also does everything have to be shared in order to mirror directories

I didn't think it had to be but got a few robocopy errors with shares not being found etc for those non shared drives unless I put the \\unc details incorrectly
1
NVITEnd-user supportCommented:
Run it from 2012.

No. You can use the admin shares. Example. This copies from the 2003 server d:\folder1 to the 2012 d:\folder2.

Preferably, test a copy using a small folder so you don't have to wait a long time for it to finish. A folder containing a few files and sub folders.

ROBOCOPY \\2003servername\$d\folder1  \\2012servername\$e\folder2 /Mir

Open in new window

1

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
Indie101Author Commented:
Thanks :)
0
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
Active Directory

From novice to tech pro — start learning today.