Strict Standards: Non-static method Settings::setHostName() should not be called statically in C:\website\www.networksteve.com\forum\_lib\AutoConfig.php on line 20

Strict Standards: Non-static method Settings::addHostAlias() should not be called statically in C:\website\www.networksteve.com\forum\_lib\AutoConfig.php on line 22

Strict Standards: Non-static method Settings::setSiteRoot() should not be called statically in C:\website\www.networksteve.com\forum\_lib\AutoConfig.php on line 28

Strict Standards: Non-static method Settings::setDsn() should not be called statically in C:\website\www.networksteve.com\forum\_site\Config.php on line 16

Strict Standards: Non-static method Settings::setTitle() should not be called statically in C:\website\www.networksteve.com\forum\_site\Config.php on line 19

Strict Standards: Non-static method Settings::setDescription() should not be called statically in C:\website\www.networksteve.com\forum\_site\Config.php on line 20

Strict Standards: Non-static method Settings::setSiteRoot() should not be called statically in C:\website\www.networksteve.com\forum\_site\Config.php on line 24

Strict Standards: Non-static method Settings::setShowDeleted() should not be called statically in C:\website\www.networksteve.com\forum\_site\Config.php on line 31

Strict Standards: Non-static method Settings::setRecentTopicsDuration() should not be called statically in C:\website\www.networksteve.com\forum\_site\Config.php on line 36

Strict Standards: Non-static method Settings::test() should not be called statically in C:\website\www.networksteve.com\forum\_lib\Init.php on line 28

Strict Standards: Non-static method Skin::test() should not be called statically in C:\website\www.networksteve.com\forum\_lib\Init.php on line 29

Strict Standards: Non-static method Settings::getSkin() should not be called statically in C:\website\www.networksteve.com\forum\_lib\Skin.php on line 102

Strict Standards: Non-static method Settings::getSiteRoot() should not be called statically in C:\website\www.networksteve.com\forum\_lib\Init.php on line 32

Strict Standards: Non-static method Settings::getDsn() should not be called statically in C:\website\www.networksteve.com\forum\_lib\Init.php on line 35

Strict Standards: Non-static method Form::field() should not be called statically in C:\website\www.networksteve.com\forum\_lib\Init.php on line 39

Strict Standards: Non-static method Form::fieldExists() should not be called statically, assuming $this from incompatible context in C:\website\www.networksteve.com\forum\_lib\Entity\User.php on line 92

Strict Standards: Non-static method Form::fieldExists() should not be called statically in C:\website\www.networksteve.com\forum\topic.php on line 15

Strict Standards: Non-static method Form::field() should not be called statically in C:\website\www.networksteve.com\forum\topic.php on line 17

Strict Standards: Non-static method Settings::getShowDeleted() should not be called statically, assuming $this from incompatible context in C:\website\www.networksteve.com\forum\_lib\Entity\Topic.php on line 138

Strict Standards: Non-static method Entity_Post::queryPosts() should not be called statically in C:\website\www.networksteve.com\forum\topic.php on line 21

Strict Standards: Non-static method Settings::getShowDeleted() should not be called statically in C:\website\www.networksteve.com\forum\_lib\Entity\Post.php on line 111

Strict Standards: Non-static method Skin::showHeader() should not be called statically in C:\website\www.networksteve.com\forum\topic.php on line 23

Strict Standards: Non-static method Skin::includeFile() should not be called statically in C:\website\www.networksteve.com\forum\_lib\Skin.php on line 46

Strict Standards: Non-static method Settings::getSkin() should not be called statically in C:\website\www.networksteve.com\forum\_lib\Skin.php on line 91
How do I move shares with Robocopy? (Network Steve Forum)
How do I move shares with Robocopy?
I have an older server with a lot of shared directories on it. I want to migrate them individually to a new W2K8R2 server. I understand Robocopy will retain all the permissions and such which is what I need. The problem I'm having is that I can't quite figure out the proper set of parameters and options to do what I need. I want to copy \\Source_server\D$\Directory_A and all of it's subdirectories and files to \\Destination_server\G$ with the same high level directory name with all of it's permissions and everything below it. What I'm finding is if I include the name "DirectoryA" in my source path, I only get the subfolders and their contents. I lose the high level directory and all of it's permissions. If I leave that name off and set the file name parameter to DirectoryA, it copies every directory on the source drive, which I don't want. Is there a way to do what I need with Robocopy? If not is there another utility that would do the job? Thanks!
March 11th, 2010 3:32pm

Hello,did you use:robocopy \\Source_server\D$\Directory_A \\Destination_server\G$ /mir or which one did you use?http://technet.microsoft.com/en-us/library/cc733145(WS.10).aspxBest regards Meinolf Weber Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
March 11th, 2010 3:46pm

Whoa, that really did weird things. It did the same thing as my first example. It didn't copy the DirectoryA folder itself, only the subfolders. It removed all the ownership and permissions that I need to keep. And then it had the added surprise of deleteing all the other stuff I had in \\Destination_server\G$. Fortunately, it was only some other test directories and log files but I didn't expect them to disappear. I think I need to avoid anything with "purge" implied. Is there any other utility besides Robocopy that might work for my situation? Thanks!
March 11th, 2010 4:40pm

Hello,well, you always have to test this kind of stuff before doing it on production. Which command line did you use for your try?Best regards Meinolf Weber Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
March 11th, 2010 4:43pm

robocopy \\Source_server\D$\Directory_A \\Destination_server\G$ /mir Is there any utility that I could just drag and drop that directory and have it bring everything over to the destination server?
March 11th, 2010 6:19pm

Hi,Drag and drop will not export the permissions, so you still need to rely on robocopy or xcopy with /o / s switches.
Free Windows Admin Tool Kit Click here and download it now
March 16th, 2010 10:22am

I still can't figure out how to copy the root directoy and all its subdirectories and permissions. I either get all the root directories on the souce drive or I get only the subdirectories of the directory I need but not the root dorectory. I'm obviously missing something but I can't figure out what it is. Everything I google about robocopy makes it sound like it's the correct tool, I just can't find the right parameters to handle my needs. Can anyone please help me? Thanks!
March 16th, 2010 3:30pm

HelloTry using richcopy 4.0..It is Microsoft advanced alternative to robocopy..The graphical interface will help you get the correct switches etc..Or you can try robocopy GUI as well.http://technet.microsoft.com/en-us/magazine/2009.04.utilityspotlight.aspxIsaac Oben MCITP:EA, MCSE
Free Windows Admin Tool Kit Click here and download it now
March 16th, 2010 4:16pm

I tried Richcopy first but I had the same problem. I couldn't figure out how to copy the root direstory. It basically did the same thing that robocopy did but with a GUI interface. Has anyone else ever successfully copied directory structures from one machine to another? And if so, what was the exact syntax of the command? Thanks!
March 16th, 2010 6:03pm

This is a typical issue, you need to configure the security on the destination directory manually (or as part of the script) before or after the Robocopy command. I usually do it before the Robocopy command but either should work, depending on how you setup your permissions.Now that i think about it (if i remember correctly) I think the issue is Robocopy will not copy permissions if they are inherited from a parent folder of the source folder specified in the Robocopy command???? Not positive but i think that is correct.Here is the robocopy command i use to mirror foldersROBOCOPY /B /NOSD /NODD /E /V /TS /FP /COPYALL /MIR /PF /W:10 /R:3 /XF *.tmp ~$*.* ~WR*.*
Free Windows Admin Tool Kit Click here and download it now
March 16th, 2010 6:42pm

Thanks to everyone for your advice. I'll keep looking around to see if I can find a tool that will copy everything that I need. I have hundreds of shares to move around and I don't what to have to manually create a lot of stuff. I'd rather just copy what I already have set up.
March 16th, 2010 7:10pm

Dell's SecureCopy is great, but it is $300 for 30days, but will do exactly what you want and more...
Free Windows Admin Tool Kit Click here and download it now
December 20th, 2012 10:39pm

It is better to create the directory_a first on the destination server. Set the necessary ntfs right on this folder. Then you can start a robocopy to synchronise the data with the ntfs right robocopy \\source_server\d$\directory_a\ \\destination_server\g$\directory_a\ /MIR /R:1 /SEC The /R is setting the retries. In case a file is in use, robocopy tries this only once. Without the /R option a sync can take a long time if a lot of files are in use. The /SEC copies the NTFS permissions.
December 21st, 2012 2:59am

Thanks to everyone for your advice. I'll keep looking around to see if I can find a tool that will copy everything that I need. I have hundreds of shares to move around and I don't what to have to manually create a lot of stuff. I'd rather just copy what I already have set up. Hello JP, Are you seriously looking for good tool? If so, Why don't you use Microsoft RoboCopy GUI tool. Tool link: http://www.myitforum.com/articles/15/view.asp?id=9433Regards, Ravikumar P
Free Windows Admin Tool Kit Click here and download it now
December 21st, 2012 3:28am


Strict Standards: Non-static method Settings::getRecentTopicsLimit() should not be called statically, assuming $this from incompatible context in C:\website\www.networksteve.com\forum\_lib\Entity\Topic.php on line 120

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics

Strict Standards: Non-static method Skin::showFooter() should not be called statically in C:\website\www.networksteve.com\forum\topic.php on line 119

Strict Standards: Non-static method Skin::includeFile() should not be called statically in C:\website\www.networksteve.com\forum\_lib\Skin.php on line 56

Strict Standards: Non-static method Settings::getSkin() should not be called statically in C:\website\www.networksteve.com\forum\_lib\Skin.php on line 91