How to do server-side logging with rsync running through a SSH tunnel?

Wayne Davison wayned at
Thu Sep 15 08:24:03 GMT 2005

On Wed, Sep 14, 2005 at 04:22:01PM -0300, Igor Hjelmstrom Vinhas Ribeiro wrote:
> rsync --config=/home/igor/rsyncd.conf --daemon --server --sender -vr . 
> ./somefolder/somewhere

A modern rsync would reject that command-line as invalid (since --sender
and -r aren't daemon options, and paths aren't sent to a daemon on the
command-line -- such client-to-server items are sent to the daemon via
the internal protocol).

I gave a basic answer to this question of server-side logging using a
daemon-over-ssh setup back on August 24th (it's pretty terse, though):

The important bit is to make sure that the client command is using
daemon-style host syntax (it sounds like you're not if your rsync_shell
script is checking path names -- there's no need to check paths with
daemon mode since the modules set their own path, nor is it possible
without parsing the start of the incoming data).

Also, make sure you're using a modern enough rsync that supports
daemon-mode over ssh (it was added in 2.5.6) and make sure that you're
sending rsync a valid daemon command-line.


More information about the rsync mailing list