WyleHou
asked on
Robocopy Root Folder
I am mirgrating shares from our 2003 File Server to a server I have implemented DFS on. I am attempting to duplicate the exisiting share on our file server to our DFS the following way:
robocopy G:\WyleTest \\ServerName\Test /E /COPYALL
This seems to be copying everything but the root directory. In destination folder I only see subfolders and files, not the root "WyleTest" folder.
I would like to copy the WyleTest folder from one server to another with all attributes, root directories, and files. The command above is copying everything WITHIN the directory but not the directory itself. Am i missing something?
I am testing with this test folder, subfolders, and files becauase once I get this correct I would like to move about two hundred share folders to another server.
Thanks
robocopy G:\WyleTest \\ServerName\Test /E /COPYALL
This seems to be copying everything but the root directory. In destination folder I only see subfolders and files, not the root "WyleTest" folder.
I would like to copy the WyleTest folder from one server to another with all attributes, root directories, and files. The command above is copying everything WITHIN the directory but not the directory itself. Am i missing something?
I am testing with this test folder, subfolders, and files becauase once I get this correct I would like to move about two hundred share folders to another server.
Thanks
ASKER
I am not understanding your syntax, sorry. Let me clarify my request a bit.
I have folders and subfolders on ServerA. I would like copy the root and its subfolders to ServerB. I used
robocopy \\ServerA\WyleTest \\ServerB\Groups /E /COPYALL
I would like the "WyleTest" root folder and all of its subfolders in the new folder of Groups. Currently when I run this command, or a combination of others, I end up with ALL of the SUBFOLDERS of WyleTest in the destination but not the actuall root directory of WYLETEST
Thanks for your input
I have folders and subfolders on ServerA. I would like copy the root and its subfolders to ServerB. I used
robocopy \\ServerA\WyleTest \\ServerB\Groups /E /COPYALL
I would like the "WyleTest" root folder and all of its subfolders in the new folder of Groups. Currently when I run this command, or a combination of others, I end up with ALL of the SUBFOLDERS of WyleTest in the destination but not the actuall root directory of WYLETEST
Thanks for your input
Well, have you at least tried my syntax? I have, and it works for me.
WyleTest is supposed to be the third parameter, which, according to the output of "robocopy /?", denotes the file (well, actually, the directory) inside the first root directory (in this case, G:\) that is to be copied to the second root directory (\\ServerName\Test). If I'm not mistaken, this is the behavior you wanted to achieve.
In "\\ServerA\WyleTest", WyleTest is the name of a share which, I suppose, you cannot copy using robocopy. But you can copy subdirectories of this share using my method.
WyleTest is supposed to be the third parameter, which, according to the output of "robocopy /?", denotes the file (well, actually, the directory) inside the first root directory (in this case, G:\) that is to be copied to the second root directory (\\ServerName\Test). If I'm not mistaken, this is the behavior you wanted to achieve.
In "\\ServerA\WyleTest", WyleTest is the name of a share which, I suppose, you cannot copy using robocopy. But you can copy subdirectories of this share using my method.
ASKER
It did what I was afraid it would do... It started copying the entire root directory of G: which has hundreds of shares.
I ran... robocopy G:\ \\ServerName\Test WyleTest /E /COPYALL
We have hundreds of shares that we need to move but only 10 or so at a time. Say we have the following ten shares we want to move from ServerA to ServerB....
ServerA
G:\Groups\Folder1
G:\Groups\Folder2
G:\Groups\Folder3
G:\Groups\Folder4
G:\Groups\Folder5
G:\Groups\Folder6
G:\Groups\Folder7
G:\Groups\Folder8
G:\Groups\Folder9
G:\Groups\Folder10
We would like to move Folder1 and all of its contents to ServerB
Server B has a Groups folder alread created. I run the following command on ServerA...
robocopy G:\WyleTest \\ServerB\Groups /E /COPYALL
Does this help you help me?
G:\Groups\Folder1
G:\Groups\Folder1
ServerA has
I ran... robocopy G:\ \\ServerName\Test WyleTest /E /COPYALL
We have hundreds of shares that we need to move but only 10 or so at a time. Say we have the following ten shares we want to move from ServerA to ServerB....
ServerA
G:\Groups\Folder1
G:\Groups\Folder2
G:\Groups\Folder3
G:\Groups\Folder4
G:\Groups\Folder5
G:\Groups\Folder6
G:\Groups\Folder7
G:\Groups\Folder8
G:\Groups\Folder9
G:\Groups\Folder10
We would like to move Folder1 and all of its contents to ServerB
Server B has a Groups folder alread created. I run the following command on ServerA...
robocopy G:\WyleTest \\ServerB\Groups /E /COPYALL
Does this help you help me?
G:\Groups\Folder1
G:\Groups\Folder1
ServerA has
ASKER
Disregard last three lines of previous post...
So in running the command "robocopy G:\WyleTest \\ServerB\Groups /E /COPYALL" I am trying to achieve the creation of "WyleTest" on ServerB under the new Groups share.
So in running the command "robocopy G:\WyleTest \\ServerB\Groups /E /COPYALL" I am trying to achieve the creation of "WyleTest" on ServerB under the new Groups share.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the quick responses and persistance. I awarded points and solution because I am sure others will have the same delima and just knowing it can't be done through Robocopy will help someone not waste their time.
Have a Merry CHRISTmas,
Rick
Have a Merry CHRISTmas,
Rick
Open in new window