Simple configuration method for synchronizing data in windows with cwrsync

Source: Internet
Author: User

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.

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.