Hi, I am pretty new to rsync so this question might have a very trivial answer. Sorry for that then. (using google didn't work though) I want to synchronise the files from my laptop to my machine at work and back from time to time. Both machines have linux (the laptop has fedora core 2 with a 2.6.6 kernel and the remote machine redhat 9 with a 2.6.3 kernel) On the laptop I use rsync v2.6.2 and on the remote machine I use v2.5.7 Using the following command: rsync -a /home/ameer/midastests remotemachine:/home/ameer/midastests I get an errormessage: protocol version mismatch - is your shell clean? (see the rsync man page for an explanation) rsync error: protocol incompatibility (code 2) at compat.c(62) I tried to use version v2.6.2 of rsync on the remotemachine, adding the option: --rsync-path=/path-to-rsync/bin/rsync This gave the same result. Also using v2.5.7 on the laptop gave the same result and a test between two remotemachines at work running the same versions gave the same. Can somebody help me out with this? Thank you very much in advance Cheers Arjen
On Tue, 2004-05-25 16:35:46 +0200, Arjen van der Meer <ameer@science.uva.nl> wrote in message <Pine.LNX.4.44.0405251539290.7094-100000@poulenc.science.uva.nl>:> rsync -a /home/ameer/midastests remotemachine:/home/ameer/midastests > > protocol version mismatch - is your shell clean? > (see the rsync man page for an explanation) > rsync error: protocol incompatibility (code 2) at compat.c(62)So it seems the scripts executed upon login (.bashrc, .profile, .bash_profile, ...) send some output (that they better didn't send). Please try: $ ssh remotemachine true > this_file_should_be_empty If the file "this_file_should_be_empty" contains *anything*, you'd look at your scripts and comment those outputting commands. MfG, JBG -- Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg fuer einen Freien Staat voll Freier B?rger" | im Internet! | im Irak! ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA)); -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.samba.org/archive/rsync/attachments/20040525/4f4946c2/attachment.bin
On Tue, May 25, 2004 at 04:35:46PM +0200, Arjen van der Meer wrote:> rsync -a /home/ameer/midastests remotemachine:/home/ameer/midastests[...]> protocol version mismatch - is your shell clean?In addition to what JBG suggested, I'd also suggest using -vv to see what command is being run to contact the remote host so you can see if it is using the right remote shell. The default is chosen at compile time and can be overridden by setting RSYNC_RSH in the environment. If it is not what you expect, set it by exporting the right value in RSYNC_RSH. If neither of these suggestions solves the problem, try using the --rsync-path=/path/rsync option so that you're sure that the right rsync on the remote system is being run. ..wayne..