Avatar of Indie101
Indie101
 asked on

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?
Active DirectoryWindows Server 2003* Robocopy

Avatar of undefined
Last Comment
Indie101

8/22/2022 - Mon
NVIT

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
Indie101

ASKER
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
ASKER CERTIFIED SOLUTION
NVIT

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Indie101

ASKER
Thanks :)
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy