Using Rsync to implement file synchronization under Windows platform

Source: Internet
Author: User
Tags rsync

Rsync is a good file synchronization tool, we need a server and a client. can achieve the local

Files are synchronized to the server, or the server-side files can be synchronized locally.

1, http://rsync.samba.org/download Cwrsync client (cwrsync) and server-side (cwrsyncserver).

2, server-side (assuming IP address: 192.168.1.100) Installation: Install by default option.

After installation, the service defaults to manual startup mode, and to Administration tools/service Management, start the "rsyncserver" service and modify "Rsyncserver" for automatic startup mode.

3, server-side configuration: Edit the rsyncd.conf file, write the following information:

The following is a code fragment:

UID = 0

GID = 0 #使用匿名方式传输时必须加入这两行

Use Chroot = False

Strict modes = False

Hosts allow = *

Log file = Rsyncd.log

# Module Definitions

# Remember Cygwin naming conventions:c:work becomes/cygwin/c/work

#

[Test]

Path =/cygdrive/d/temp #指定服务端用来同步的文件, which represents the "D:temp" folder

Read Only = False

Transfer logging = yes

Description: [Test] is the module definition to be synchronized, you can define multiple modules, path is the disk path,/cygdrive/d/temp corresponds to the D:temp folder, because Cwrsync software in Windows can not directly hang the letter, the use of/cygdrive/ This pattern.

4, in another machine installation client (assuming IP address: 192.168.1.101), in the command line mode, into the installation directory under the Bin folder, execution: Rsync-avr 192.168.1.100::test/cygdrive/d/temp, This allows the server-side files to be synchronized locally.

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.