12 Feb

Quick rsync server setup on Linux box

This goes to your /etc/rsyncd.conf:

log file = /var/log/rsyncd.log
transfer logging = true

path = /home/
uid = apache
gid = apache
read only = no
list = yes
comment = home
auth users = web
secrets file = /etc/rsyncd.passwords
hosts allow =
hosts deny =

To launch run:

rsync --daemon

/etc/rsyncd.passwords is plain text file with passwords in format:


For example,


Using it:

rsync -av  /home/ [email protected]::home/

To test add –dry-run option. It will not make any changes. This is it.

Leave a Reply

Your email address will not be published. Required fields are marked *