rsync error: protocol incompatibility (code 2) at main.c(1385)
Matt McCutchen
hashproduct+rsync at gmail.com
Mon Oct 15 12:21:23 GMT 2007
Please CC the list so people other than me can help you and so your
messages will be available to future users.
On 10/15/07, Mario Domgörgen <md at simplethings.de> wrote:
> No, i don't run the client side command myself. The backup should start
> from the server, so i use the the second command to connect to the
> client with an unpriviledged user, that has a forced command in his
> authorized_keys file.
The particular data sent by the rsync protocol depends heavily on the
options used, so if the forced command doesn't match the remote
command that rsync is trying to invoke, the protocol will get
corrupted. I bet this is what caused the error. Forcing a particular
--server command is brittle; instead, you should force an
appropriately configured single-use daemon (my personal preference) or
use the "support/rrsync" script in the source tree. See
https://bugzilla.samba.org/show_bug.cgi?id=4163 .
Matt
More information about the rsync
mailing list