rsync安装配置
一,安装
wget http://www.samba.org/ftp/rsync/rsync-3.0.3.tar.gz
tar -zxvf rsync-3.0.3.tar.gz
./configure --prefix=/data/apps/rsync-3.0.3
make && make install
二,配置
vim /etc/rsyncd.conf
uid = root
gid = root
use chroot = yes
max connections = 4
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
三,启动rsync守护进程
/data/apps/rsync-3.0.3/bin/rsync --daemon
四,添加同步目录
[mydir]
path = /home/chenghui/mydir
hosts allow = 192.168.99.1/24
read only = yes
五,客户端同步
/usr/bin/rsync -vazu --delete 192.168.99.130::mydir /home/myname/mydir/
六,遗憾
没有找到同步源中有软链接的方法