rsync sync files between Windows servers

Source: Internet
Author: User
Tags rsync

Two Windows7 machines

server:192.168.12.104

client:192.168.12.103

Purpose: To synchronize the contents of the E-disk directory FYFR on the server to the FYFR directory under the D disk on the client.

(No user password authentication, direct anonymous connection synchronization)

Configuration steps:

Service-Side server:192.168.12.104

Installing Cwrsyncserver_4.1.0_installer

Go to the installation directory C:\Program files (x86) \ICW, open the configuration file rsyncd.conf

The content is configured as:

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

#定义被同步的目录

[Parker]

Path =/cygdrive/e/fyfr

Read Only = False

Transfer logging = yes

Open Service Services

Method: Start-and-run-->services

To find a service named Rsyncserver, click Open

Turn off the firewall, if you must turn on the firewall, configure allow ports to pass through the firewall

Client client:192.168.12.103

Installing Cwrsyncclient_4.1.0_installer

Open cmd and do the following to test if you can connect to the server properly

Telnet 192.168.12.104 22

Telnet 192.168.12.104 873

If the test is successful, you can synchronize the files

CD C:\Program Files (x86) \cwrsync\bin

RSYNC-VZRTOPG--progress--delete 192.168.12.104::p arker/cygdrive/d/fyfr

You can write the above two commands into the bat file to make a scheduled task execution

rsync sync files between Windows servers

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.