Cwrsync Download Address
Http://sourceforge.net/projects/sereds/files/cwRsync or download to s.jb51.net
Cwrsync Division client and service end two parts, take Cwrsync 4.0, respectively corresponding to Cwrsync_4.0.5_installer.zip and Cwrsyncserver_4.0.5_installer.zip
Installation:
Client installation is relatively simple, always the next step is OK.
When the server is installed to service account, this step will establish Cwrsync system accounts, you can use the default and can also customize the account and password, the account in the back of the synchronization when useful, later explained in detail.
Once installed, add the installation directory to the Windows path variable to facilitate direct reduction at the command line using the rsync command.
Environment
Service side (the server where the data needs to be synchronized): 192.168.1.77
Client (server that needs to synchronize data): 192.168.1.2
Data to be synchronized: d:\home
Need to sync to E:\www\home
Server
Click on the 192.168.1.77
Start-All Programs-cwrsyncserver-01.rsyncd.conf
Open the Cwrsync configuration file and enter the following
Copy Code code 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 execute
net start Rsyncserver
Start the Cwrsync service
Note: d:\home This directory to Cwrsync system users (Install the Cwrsync server when the new account is the default is Svccwrsync) Read permissions, otherwise the client will be synchronized when the error (@ERROR: ChDir failed)
Client
Click
Start-run-cmd (enter)
Open the Command line window and execute
Rsync-avz 192.168.1.77::site/cygdrive/e/www/home
That's when Cwrsync started synchronizing the data for us.
Note: If you have just not added the Cwrsync installation directory to the Windows path variable, the system cannot execute the rsync command. Add a method, for example, if I install a cwrsync client in D:\Program Files\cwrsync, you need to add D:\Program files\cwrsync\bin this path to the Windows system path variable. After adding, you need to reopen the CMD command Line window to execute the command above.