Re: rsync error: protocol incompatibility (code 2) at main.c(1385)
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 [EMAIL PROTECTED] 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 -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: rsync error: protocol incompatibility (code 2) at main.c(1385)
On 10/8/07, Mario Domgörgen [EMAIL PROTECTED] wrote: i'm trying to backup one of my hosts with a two rsync-scripts, which are mainly just calling on the client side /usr/bin/rsync --server --sender -vlogDtprz --delete-excluded --numeric-ids --exclude-from=/etc/sm-backup/rsync.exclude / and on the server side rsync -avz --numeric-ids -e ssh -i $key --delete --delete-excluded [EMAIL PROTECTED]:/ $DATA_PATH/$client/daily.0 The backup return with the following message on the server side rsync error: protocol incompatibility (code 2) at main.c(1385) [generator=2.6.9], but i can't see any error message on the client side. On both machines the newest version of rsync from the debian stable repository is installed (2.6.9-2etch1). The first command is of the form that rsync uses to invoke itself over a remote shell. Are you running this command yourself? If so, why? Is this instead of or in addition to rsync invoking itself on the client as a result of the second command? If you explain your setup a bit more, I will have a better idea of why it isn't working. Matt -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html