Setting up rsync to mirror music library

By , 2011-04-06 21:04

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

One Response to “Setting up rsync to mirror music library”

  1. Google Chrome 21.0.1180.89 Google Chrome 21.0.1180.89 Mac OS X  10.7.3 Mac OS X 10.7.3
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1

    Your command is hard to follow; your blog converted the code into a mailto address.

Leave a Reply

 

Custom theme by me. Based on Panorama by Themocracy