配置文件
cat > /etc/rsyncd.conf <<EOF
uid = rsync
gid = rsync
use chroot = no
max connections = 500
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsyncd.lock
secrets file = /etc/rsyncd.passwd
hosts allow = 80.16.63.21
hosts deny = 0.0.0.0/0
[host]
comment = backup vhost
path = /data/02
read only = no
list = no
auth users = user
EOF
然后在客户端:
rsync -rv --password-file=/etc/rsync.password user@80.16.63.98::host/80.16.63.21/database
还是可以列出列表
值是true/flase