Cwrsync
Http://sourceforge.net/projects/sereds/files/cwRsync or download to s.jb51.net
Cwrsync is divided into two parts: client and server. Let's talk about cwrsync 4.0.. In contrast, cwrsync_4.0.5_installer.zipand cwrsyncserver_4.0.5_installer.zip
Installation:
The Client installation is relatively simple, and you can continue to do so.
When the server is installed to the Service Account, this step will create a cwrsync SYSTEM Account, you can use the default or custom Account and password, this account is useful for subsequent synchronization, which will be explained in detail later.
After installation, add the installation directory to the path variable of windows, so that you can directly call the rsync command under the command line.
Environment
Server (the server where the data to be synchronized is located): 192.168.1.77
Client (the server that needs to synchronize data): 192.168.1.2
Data to be synchronized: d: \ home
To be synchronized to e: \ www \ home
Server:
On 192.168.1.77, click
Start-all programs-cwRsyncServer-01.rsyncd.conf
Open the cwrsync configuration file and enter the following content:Copy codeThe Code is as follows: [site]
Path =/cygdrive/d/home
Hosts allow = 192.168.1.2
Hosts deny = *
List = true
Uid = 0
Gid = 0
Then click
Start-run-cmd (enter)
Open the command line window, and then execute
Net start RsyncServer
Start the cwrsync Service
Note: The d: \ home directory should be read to the system users of cwrsync (the account created when the cwrsync server is installed is SvcCWRSYNC by default, otherwise, an ERROR will be reported during client synchronization (@ ERROR: chdir failed)
Client:
Click
Start-run-cmd (enter)
Open the command line window, and then execute
Rsync-avz 192.168.1.77: site/cygdrive/e/www/home
Now cwrsync starts to help us synchronize data.
Note: If the installation directory of cwrsync is not added to the path variable of windows, the system cannot execute the rsync command. Add method. For example, if I install the cwrsync client on D: \ Program Files \ cwRsync, I need to set D: \ Program Files \ cwRsync \ bin. After adding the command, you must re-open the cmd command line window to execute the preceding command.