For Microsoft Windows 2003 server use robocopy tool, to sync files between two windows server. You can download robocopy.exe and other files from Windows 2003 Resource Kit Tools set.
Once tool is downloaded, install the Resource Kit. By default robocopy located at c:\Program Files\Windows Resource Kits\Tools\robocopy.exe. Now let us assume that you want to sync d:\Inetpub\wwwroot\ directory between two Windows server. First create hidden share on www2 (secondary server)
- Login to www2
- Select d:\Inetpub\wwwroot\
- Right click > Properties > Sharing tab > Share this folder > Add $ at the end of share name and save the changes.
How do I use robocopy command?
=> Login to primary server (www1)=> Click on stat > run > type cmd
=> At command prompt type command:
c:>"c:\program files\windows resource kits\tools\robocopy.exe d:\inetpub\wwwroot www2\\inetpub\wwwroot\"
ALTERNATIVELY, use IP address of www2 server :c:>"c:\program files\windows resource kits\tools\robocopy.exe d:\inetpub\wwwroot 202.54.10.200\\inetpub\wwwroot\"
robocopy has many more options and lots of other information available in Robocopy.DOC file.
No comments:
Post a Comment