Rsync file synchronization (under Windows installation Deployment)

Source: Internet
Author: User
Tags rsync

For More blog posts please follow: a child without an umbrella must try to run (www.xuchanggang.cn)


Rsync Windows Version installation package: (this download is 4.0.5)
:http://www.pc6.com/softview/SoftView_108644.html
Rsync software includes server side and client side
Installation of rsync software: Default port: 873
Because it is a graphical installation of Windows, it is not shown here.
Just remember that server edition is servers-mounted. Client-side version
The server side is configured as follows:
(1). Configure the Rsyncd.conf file: (the path is as follows: C:\Program files\icw\rsyncd.conf)
The contents are as follows: (the specific meaning of each column, please Baidu, should also be able to basically understand)


Use Chroot = False strict modes = FALSE hosts allow = * log file = Rsyncd.log lock file = rsyncd.lock Max connection = 5 U id = 0 GID = 0 log file =/crgdrive/c/rsyncd.log # Module Definitions # Windows Disk format requires conversion: C:\work  becomes  /cygwin/c/wor  K # [shouyou] path =/cygdrive/c/dbbackup Auth users = XCG Secrets file =/cygdrive/c/rsync_db.ps Read Only = False list = No Transfer logging = yes


(2). Configure the authenticated user and password file: (the path is the same as specified above/cygdrive/c/rsync_db.ps is C-drive)
The content is as follows: (this user is used to verify the client transfer file, the client needs to enter this password, the following text is written in the rsync_db.ps file)
xcg:123456

(3). At the command line, "Run" Input: Services.exe carriage return
Manually starting rsync can also be set to start automatically

Client Side configuration:
(1). Configure path path, easy to use (method does not introduce, self-groping)
Join the Bin directory of rsync: C:\Program Files (x86) \cwrsync\bin (remember to add semicolons earlier)

(2). Telnet test is properly connected to the Rsync server side
Telnet IP Address 873

(3). Transfer the file to the server side (--delete This parameter for self-exploration)
RSYNC-VPRTOPG--progress Specify client-local directory [email protected] IP address:: Server-defined module name
such as: RSYNC-VPRTOPG--progress/cygdrive/c [Email protected]::shouyou
After the loss, you will be prompted to enter a password: Enter the server-side profile settings password: 123456

(4). Server-side synchronization client Side
RSYNC-VPRTOPG--progress [Email protected]::shouyou/cygdrive/c

(5). Each sync old input password, inconvenient, so in the client configuration password file:
Here in the C-drive under the a.ps
Content: 123456 (content directly enter the password)
Use the following:
RSYNC-VPRTOPG--progress--password-file=/cygdrive/c/a.ps/cygdrive/c [email protected]::shouyou

Note: This is usually an error: password file must be owned by root when running as root

The workarounds are:
On the client side, modify the password file that you just set to 600 permissions:
As follows: Chmod-c 600/cygdrive/c/a.ps
Modify Owner: This default client side does not have, in the server side of the bin directory, copy a chown.exe come over, do the following:
Chown administrator/cygdrive/c/a.ps
At this point, the test should be no problem.


This article comes from the blog, "Children without umbrellas must try to run", so be sure to keep this source http://634871.blog.51cto.com/624871/1412786

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.