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