Just threw together a quick rsync client-server setup for syncing my music library between to computers.

on one computer:

/etc/rsyncd.conf:

max connections = 2
log file = /var/log/rsync.log
timeout = 300

[music]
comment = Music Share
path = /path/to/music
read only = no
list = yes
uid = somebody
gid = somegroup
auth users = somebody
secrets file = /etc/rsyncd.secrets

On the client:

rsync --delete -azvv /path/to/local/music [email protected]::music

Also remember to check firewall settings, and run the rsync daemon as a user “somebody” that has access to write in the rsync’d folder.

And don’t forget to enable the rsync daemon in /etc/default/rsync

RSYNC_ENABLE=true