Turning It Into A Rsync Server

I got a MBWE2 a week ago or so with "improvement" in mind. After getting ssh access using Martin Hinner's hack, I did the following to turn the MBWE into a rsync server:

Add the following line to /etc/services:

rsync        873/tcp

Add the following to /etc/inetd.conf:

rsync stream tcp nowait root /usr/bin/rsync rsyncd --daemon

You'll also need to edit /etc/rsyncd.conf to your liking. Check the rsyncd.conf man page for details.

An example which makes the whole of the MyBook shared disk available is:

        comment = "MyBook share directory"
        path = /shares/internal/PUBLIC
        uid = www-data
        gid = www-data
        list = true
        use chroot = no
        read only = no

n.b. This only applies if you are connecting directly to rsyncd (i.e. via port 873). If you intend to rsync over ssh which I believe is the default for rsync, none of the above is required, if you have ssh access, you can rsync to it like below without any further modifications!

rsync -az source user@host:directory

1. Just a note, OptWare has rsync-3.x available to install (firmware 1.x ships with rsync-2.x I believe) — mallchin
2. Indeed, rsync-3.x is much more memory efficient, see here, and thus great for the memory-limited MBWE. Also check the discussion in rsnapshot-based-backup-server — gpapan.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License