192.168.6.71 为服务端
192.168.6.72 为客户端
rsync --daemon
vim /etc/rsyncd.conf
port=8730
log file=var/log/rsync.log
pid file=/var/run/rsync.pid
[alex]
path=/tmp/rsync
use chroot=yes
max connections=4
read only=no
list=yes
uid=root
gid=root
auth users=alex
secrets file=/etc/rs.passwd
hosts allow=192.168.6.72
vim /etc/rs.passwd
alex:1234
chmod 600 /etc/rs.passwd
# rsync -av --port 8730 alex@192.168.6.71::alex/11 ./
Password:
receiving incremental file list
11
sent 73 bytes received 134 bytes 46.00 bytes/sec
total size is 0 speedup is 0.00