Posts in category rsync

rsyncd server basic configuration on Licorn®

In a few words, on the server side (Ubuntu Maverick):

/etc/rsyncd.conf:

[Sauvegardes]
	# not beiing root seems safer to me.
	uid = rsync
	# the gid is the tricky part and must be forced, else tranfers fail. 
	# rsp-* implies the daemon on the server side has always full permissions.
	gid = rsp-Sauvegardes
	path = /home/groups/Sauvegardes
	comment = Sauvegardes
	read only = no

/etc/default/rsync:

RSYNC_ENABLE=true
RSYNC_OPTS='--address=192.168.111.1'
RSYNC_NICE=''
RSYNC_IONICE='-c3'

in the root shell:

# not that needed, but seems clean to me
add group --system rsync

# this one is really needed
add user --system rsync --force

# not that needed too, but seems clean to me
add user rsync rsp-Sauvegardes

On the client side:

rsync -a <other options> dir1 dir2 ... leto::Sauvegardes/

Speed note: my server Leto beiing a "poor" and old monocore AMD Sempron, using rsyncd permits to speed up the transfers up to the client disk reading speed (roughly 25Mb/s in best moments) using only 30% CPU, instead of being CPU clamped to 100% with ~8Mb/s maximum speed when wrapped inside SSH (which is totally useless on a trusted local network, IMHO).