A服务器的ip172.16.140.81 B服务器:172.16.140.82
一、rsync服务器端架设
1、安装
wget https://download.samba.org/pub/rsync/src/rsync-3.0.6.tar.gz
tar -zxvf rsync-3.0.6.tar.gz
./configure --prefix=/usr/local/rsync
make
make install
2、配置
2.1、配置rsyncd.conf 不存在就手动创建 touch /usr/local/rsync/rsyncd.conf
配置内容如下:
uid = root
gid = root
use chroot = yes
strict modes = false
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
transfer logging = true
log format= “%o [%a] %m (%u) %f %l %b %c”
reverse lookup = no
ignore errors = true
read only = false
hosts allow = 172.16.140.82#(B服务器的地址,允许B服务器通过)
hosts den