网络环境:
(公司局域网)
server:10.10.101.157
client:10.10.100.48
一,软件下载安装(我们装的版本是rsync-2.6.9.tar.gz)
1.从原始网站下载:http://rsync.samba.org/ftp/rsync/
2.#./configure
#make
#make install
说明一点,客户机和服务器都要安装rsync。客户机以客户端方式运行rsync,服务器端以服务器方式运行rsync,它监听873端口。
3.运行rsync
/usr/local/bin/rsync --daemon
验证启动是否成功:
netstat -na|grep 873
二,服务端配置
10.10.101.157
1,编辑/etc/rsyncd.conf
uid = nobody
gid = nobody
use chroot = no
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
max connections = 4
[www]
path = /home/faga
comment = BACKUP WWW
ignore errors
read only = yes
list = no
auth users = faga
hosts allow=10.10.100.48
secrets file = /etc/rsyncd.secrets
