A simple configuration method for synchronizing Windows data with Cwrsync _win server

Source: Internet
Author: User
Tags rsync
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.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.