Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go



CLICK HERE TO VISIT THE UPDATED SURVIVAL GUIDE

Rsync Server

To set up an rsync server simply install the rsync package then copy /usr/share/doc/rsync/sample-rsyncd.conf.gz to /etc/rsyncd.conf. Edit it to perhaps turn logging on:

log file=/var/log/rsyncd
... 
        transfer logging = yes

Make sure that port 873 is allowed through your firewall. Add the following line to /etc/inetd.conf:

rsync stream tcp nowait root /usr/bin/rsync rsyncd --daemon
Then restart inetd by sending it a HUP.

The rsync server works with modules. Modules are defined in the configuration file. A list of modules is returned from an rsync server when the server is queried:

  $ rsync datamining.csiro.au::
  debianbook     Graham's Debian GNU/Linux Survival Guide

For each module (debianbook in the above) you identify a its configuration, including a path to where it lives, for example:

[debianbook]

        comment = Graham's Debian GNU/Linux Survival Guide
        path = /var/www/debian/book
        read only = yes
        list = yes
        uid = nobody
        gid = nogroup
        transfer logging = yes
...

To get a directory listing from an rsync server:

  $ rsync datamining.stir.au::debianbook/

To have your local server start up at boot time add the following to /etc/inetd.conf:

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

After editing the /etc/rsyncd.conf file be sure to send the process a HUP signal.


Support further development by purchasing the PDF version of the book.
Other online resources include the Data Science Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2020 Togaware Pty Ltd. Creative Commons ShareAlike V4.