Quantcast
Channel: Windows Server
Viewing all articles
Browse latest Browse all 26364

Robocopy command to copy all shares within a server

$
0
0

If I want to move everything on one server to another server without specifying a specific share, is that possible.

For Example, I have a server \\data and multiple shares within that I want to move to \\newdata. What is the command to move all of the shares within data.

Would this work?

robocopy \\data \\newdata /E /MIR /ZB /COPYALL /R:1 /W:1 /V /TEE /LOG:Robocopy.log

or do I need to specify a share.

In the case that I do need to specify a share, how do I include the share folder in the move process.

For example if I move \\data\IT to \\newdata it only moves the files and folders within \\data\IT and not the IT folder itself.

Thanks!!


Viewing all articles
Browse latest Browse all 26364

Trending Articles