Server config: /etc/rsyncd.conf
uid = www-data gid = www-data max connections = 4 use chroot = no log file = /var/log/rsyncd.log pid file = /var/run/rsyncd.pid lock file = /var/run/rsync.lock #hosts allow = 0.0.0.0 #hosts deny = 192.168.100.0/24 [rsync] path = /var/www/html comment = rsync auth users = rsync ignore errors read only = yes list = yes auth users = rsync secrets file = /etc/rsyncd.pwd
Secret: /etc/rsyncd.pwd
rsync:rsync
Server run:
$ rsync --daemon --config=/etc/rsyncd.conf
Client connect:
$ rsync --list-only -rsh=rsh --port=873 [email protected]_TARGET_ADDRESS::rsync