• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 64
  • Last Modified:

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?
  • 2
  • 2
1 Solution
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
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
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

Indie101Author Commented:
Thanks :)
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.

Join & Write a Comment

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now