Re: How to do server-side logging with rsync running through a SSH

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.