Rsync enables Windows systems to synchronize with Linux files

Source: Internet
Author: User
Tags rsync

Rsync is a data- mirroring Backup tool (remote sync) for Linux-like systems. A fast incremental backup tool remote sync that supports local replication or synchronizes with other SSH and rsync hosts.


1. Install and configure rsync software (Linux system server)

[email protected] ~]# Yum install rsync-y
[Email protected] ~]# vim/etc/rsyncd.conf
Uid=root--The user who uploaded the file
Gid=root--affiliated group
Use Chroot=no--cannot go to other directories
Max connections=3--Maximum number of connections
PID File=/tmp/rsync.pid
Lock File=/tmp/rsync.sock
Log File=/var/log/rsync.log--Journal File

[Server1]--Identifier
Path=/home/server1--Synchronization of directories
Igonre errors
Read Only=no
List=yes
Auth users=root--login username, can not be a system user
Secrets File=/etc/backserver.pas--Password file


[Server2]
Path=/home/server2
Igonre errors
Read Only=no
List=yes
Auth Users=root
Secrets File=/etc/backserver.pas

[[email protected] ~]# mkdir/home/server{1,2}

[Email protected] ~]# Vim/etc/backserver.pas

root:root135

[Email protected] ~]#/usr/bin/rsync--daemon
-A input-m state--state new-m tcp-p TCP--dport 873-j ACCEPT

[Email protected] ~]#/etc/init.d/iptables restart


2. Download rsync on Windows client

D:\CWRSYNC_X86_FREE\CWRSYNC_5.4.1_X86_FREE\RSYNC.EXE-VZRTOPGU--progress--delete [email protected]::server2/ Cygdrive/d/server1


[Email Protected]::server1--root is a synchronous user, 192.168.2.112 is the IP address of the rsync server, Server1 is the identifier

/cygdrive/d/server1-Save the remote directory to the local D-disk Server1

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/C4/wKioL1YorynQT6SWAAMxuAsOuek757.jpg "title=" 1.png " alt= "Wkiol1yorynqt6swaamxuasouek757.jpg"/>

This article is from the "Days Together" blog, please be sure to keep this source http://tongcheng.blog.51cto.com/6214144/1705322

Rsync enables Windows systems to synchronize with Linux files

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.