Rsync synchronizes Windows and Linux Files
Rsync is a data image backup tool (remote sync) in Linux ). A Fast Incremental Backup Tool, Remote Sync, supports local replication or synchronization with other SSH and rsync hosts. 1. install and configure the Rsync software (Linux Server) [root @ node3 ~] # Yum install rsync-y [root @ node3 ~] # Vim/etc/rsyncd. conf uid = root -- file Upload user gid = root -- group use chroot = no -- cannot go to other directories max connections = 3 -- max connections pid file =/tmp/rsync. pidlock file =/tmp/rsync. socklog file =/var/log/rsync. log -- log file [Server1] -- identifier path =/home/Server1 -- synchronized directory igonre errors read only = nolist = yesauth users = root -- login username, it may not be a system user secrets file =/etc/backserver. pas -- Password File [Server2] path =/home/Server2igonre errorsread only = nolist = yesauth Users = rootsecrets file =/etc/backserver. pas [root @ node3 ~] # Mkdir/home/Server {1, 2} [root @ node3 ~] # Vim/etc/backserver. pasroot: root135 [root @ node3 ~] #/Usr/bin/rsync -- daemon-a input-m state -- state NEW-m tcp-p tcp -- dport 873-j ACCEPT [root @ node3 ~] #/Etc/init. d/iptables restart 2. download RsyncD: \ cwRsync_x86_Free \ drivers \ rsync.exe-vzrtopgu -- progress -- delete [email protected]: Server2/cygdrive/D/Server1 [email protected]: server1 -- root is the synchronization 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