please give the command in Robocopy i should use to copy the files from primary server to the secondary server

13,541

An example of a ROBOCOPY call would be

ROBOCOPY  C:\Users \\SERVER\backup\Users /MIR /R:0 /W:0

This copys everything under C:\Users to a network share at the UNC path \\SERVER\backup. If you don't know, what that means, google for 'UNC path' or find a nice tutorial that explains how to setup network shares under Windows.

Instead of \\SERVER\backup, that copies to a remote machine, you are totally free to use something like H:\ to copy to a local drive like a USB mass storage device.

The part /MIR /R:0 /W:0 are options of ROBOCOPY. Call ROBOCOPY /? to get an explanation for these.

Cheers,

Share:
13,541
Admin
Author by

Admin

Updated on June 06, 2022

Comments

  • Admin
    Admin almost 2 years

    I got the command in robocopy as mentioned below

    ROBOCOPY Source Destination [file…[file]…..] [Options]

    Source: Source Directory Destination: Destination Directory Files: files to copy .

    Please let us know what does the "\server\share\path" means? Kindly provide me an example on this command syntax and explain