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.

That's all!
Also
chmod 640 /usr/local/etc/rsyncd.secrets

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

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