http://rsync.samba.org/
rsync-3.1.1.tar.gz
---0.卸载rpm
# yum remove rsync
-----1.安装:
tar -zxvf rsync-3.1.1.tar.gz
cd rsync-3.1.1
./configure --prefix=/usr/local/rsync --disable-ipv6
make
make install
ln -s /usr/local/rsync/bin/rsync /usr/local/bin/rsync
----2.server端配置
# vi /usr/local/rsync/rsyncd.conf
pid file = /var/run/rsyncd.pid
port = 873
pid = root
gid = root
use chroot = no
max connections = 200
timeout 600
lock file = /var/run/rsyncd.lock
log file = /var/run/rsyncd.log
secrets file = /usr/local/rsync/rsyncd.secrets
motd file = /etc/rsyncd.motd
[test]
path = /test/
ignore errors
read only = true
list = false
hosts allow = *
#hosts deny = 0.0.0.0/32
auth users root #该用户系统中存在且对后面指定的备份目录拥有权限
comment = ocpyang test
#vi /usr/local/rsync/rsyncd.motd
++++++++++++++++++++++
rsync 3.1.1源码编译安装配置
最新推荐文章于 2024-05-22 20:31:15 发布