Rsync under the Windwos

Source: Internet
Author: User

First, Introduction


Cwrsync is the implementation version of Rsync on Windows, and rsync can transfer only modified files over the network by using the file transfer technology of the specific algorithm.
Cwrsync is primarily used for remote file synchronization backup and synchronization on Windows, which contains the Cygwin DLL and the rsync two parts of the applicable Cygwin version.


Second, Server:

Service Pack: Cwrsyncserver-v4.1.0.zip

Client Package: Cwrsync-v4.1.0.zip



1. Unzip the ZIP package to the appropriate directory

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/73/B8/wKiom1YE9ITQcHYTAADgGOirnwY593.jpg "title=" Picture 1.png "alt=" Wkiom1ye9itqchytaadggoirnwy593.jpg "/>

2. and then execute EXE installation file installation:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/B8/wKiom1YE9K2yvGx_AAFg8-4eoQ4036.jpg "title=" Picture 2.png "alt=" Wkiom1ye9k2yvgx_aafg8-4eoq4036.jpg "/>

3, the account password here personally think it is possible to keep the default (late useless)

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/73/B8/wKioL1YFNXOxAqHGAAGAgWjiqho167.jpg "title=" Picture 3.png "alt=" Wkiol1yfnxoxaqhgaagagwjiqho167.jpg "/>

4. Modifying a configuration file rsync d.conf as follows (default location: C:\Program files\icw\):

use chroot = falsestrict modes = falsehosts allow = 10.1.1.20        #允许IP访问log  file = rsyncd.log          #日志文件pid  file = rsyncd.pid        # Process file port = 52326                   #指定服务端口max  connections = 4uid = 0                       # Do not restrict user gid = 0                        #不限定组 [test]                         #认证的模块名, You need to specify the use of path = /cygdrive/e/www& on the client sidenbsp;       #同步的目录read  only = falsetransfer logging =  yeslock file = rsyncd.lock[test2]path = /cygdrive/e/yyyread only =  falsetransfer logging = yeslock file = rsyncd.lock


5. run services.msc, select the service "Rsyncserver" To configure the startup type to "Automatic", and then start the service.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/73/B8/wKiom1YE9eHCJMa5AAGJ7QyjzQo714.jpg "title=" Picture 5.png "alt=" Wkiom1ye9ehcjma5aagj7qyjzqo714.jpg "/>


Third, Client:


Install the client package: Cwrsync-v4.1.0.zip

1. Create a synchronization directory E/test

2. Create under Directory bin Test _rsync.bat

Rsync-av Rsync://10.1.1.10:52326/test/cygdrive/e/test

Rsync-av rsync://10.1.1.10:52326/test/cygdrive/e/test 1

3, you can click the first test can be synchronized

4. Adding files to a directory that is synchronized on the server side



Iv. Adding a task plan:


Windwos fastest also only 1 minutes synchronization once, who has a better way to welcome the guide

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/73/BB/wKiom1YFNaPiDw5_AAMTzzDR3tI604.jpg "style=" float: none; "title=" Image 6.png "alt=" Wkiom1yfnapidw5_aamtzzdr3ti604.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/B8/wKioL1YFNajAqcv5AAIYR8xKoRw875.jpg "style=" float: none; "title=" Image 7.png "alt=" Wkiol1yfnajaqcv5aaiyr8xkorw875.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/73/BB/wKiom1YFNaOxc_nnAAIM20xI27o086.jpg "style=" float: none; "title=" Image 8.png "alt=" Wkiom1yfnaoxc_nnaaim20xi27o086.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/73/B8/wKioL1YFNaiCZ0yoAAE-fyFz_OA568.jpg "style=" float: none; "title=" Image 9.png "alt=" Wkiol1yfnaicz0yoaae-fyfz_oa568.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/BB/wKiom1YFNaSwivSDAAIoipsCpys534.jpg "style=" float: none; "title=" Image 10.png "alt=" Wkiom1yfnaswivsdaaioipscpys534.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/B8/wKioL1YFNaizaBn4AAG3l5nap-M784.jpg "style=" float: none; "title=" Image 11.png "alt=" Wkiol1yfnaizabn4aag3l5nap-m784.jpg "/>



V. Testing

Test instructions

Start time

End time

Take

New 2.6w file (size 27G)

10:07:02

13:56:33

3:49:31

2.6w file based on one synchronization (number of files 0)

9:12:10

9:17:46

0:05:36

2.6w file based on one synchronization (number of files 100 size 130M)

9:27:33

9:33:25

0:05:52

Client gets a list of updated files each time it is synchronized (2.7w 27.5G) takes a long time to file a larger number (5min47s)

Incremental updates on this basis take a short time, updating 100 files (minus the Get-list times) takes only 16s


This article is from the "Good Big Knife" blog, please make sure to keep this source http://53cto.blog.51cto.com/9899631/1698328

Rsync under the Windwos

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.