This goes to your /etc/rsyncd.conf:
log file = /var/log/rsyncd.log transfer logging = true [home] path = /home/ uid = apache gid = apache read only = no list = yes comment = home auth users = web secrets file = /etc/rsyncd.passwords hosts allow = 192.168.1.1/32 hosts deny = 0.0.0.0/0
To launch run:
/etc/rsyncd.passwords is plain text file with passwords in format:
rsync -av /home/ email@example.com::home/
To test add –dry-run option. It will not make any changes. This is it.