Rsync param parsing using --rsh broken? (was: no subject)

Jim Gallagher jim at thegallaghers.biz
Thu Sep 16 14:06:54 GMT 2004


Reposting this with a subject line :-)

Hi,

I'm trying to get rsync over OpenSSH/Cygwin working. I started with a command
 like this (which fails):

$ rsync -v -v -v --recursive --rsh="ssh -i /home/ul081b/mpdm-keys/rsa-mpdm01mpdm at mpdm-w2k3"  MPDM-W2K3::MPDM . 
opening connection using ssh -i /home/ul081b/mpdm-keys/rsa-mpdm01 mpdm at mpdm-w2k3 MPDM-W2K3 rsync --server --daemon . 
bash: line 1: MPDM-W2K3: command not found
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at
 /home/lapo/package/tmp/rsync-2.6.2/io.c(342) _exit_cleanup(code=12,
 file=/home/lapo/package/tmp/rsync-2.6.2/io.c, line=342): about to call
 exit(12)

The above example should work, if I'm reading the docs correctly.

After hours of getting nowhere, I tried this (which worked, but it doesn't
 look to me that this is the way the docs say to do it) (the only difference
 is I left out the hostname adjacent to the module):

$ rsync -v -v -v --recursive --rsh="ssh -i /home/ul081b/mpdm-keys/rsa-mpdm01 mpdm at mpdm-w2k3"  ::MPDM . 
opening connection using ssh -i /home/ul081b/mpdm-keys/rsa-mpdm01 mpdm at mpdm-w2k3 rsync --server --daemon .
 Global parameter log file found in service section!
receiving file list ...
recv_file_name(.)
recv_file_name(COPYING)
recv_file_name(INSTALL)
recv_file_name(NEWS)
recv_file_name(README)
recv_file_name(TODO)
received 6 names
done
recv_file_list done
get_local_name count=6 .
generator starting pid=2180 count=6
delta transmission enabled
recv_generator(.,0)
recv_files(6) startingrecv_generator(COPYING,1)

recv_generator(INSTALL,2)
recv_generator(NEWS,3)
recv_generator(README,4)
recv_generator(TODO,5)
generate_files phase=1
recv_files(COPYING)
COPYING
got file_sum
renaming .COPYING.000820 to COPYING
recv_files(INSTALL)
INSTALL
got file_sum
renaming .INSTALL.000820 to INSTALL
recv_files(NEWS)
NEWS
got file_sum
renaming .NEWS.000820 to NEWS
recv_files(README)
README
got file_sum
renaming .README.000820 to README
recv_files(TODO)
TODO
got file_sum
renaming .TODO.000820 to TODO
recv_files phase=1
generate_files phase=2
recv_generator(.,0)
generate_files finished
recv_files finished

wrote 161 bytes  read 57446 bytes  23042.80 bytes/sec
total size is 57100  speedup is 0.99
rsync error: some files could not be transferred (code 23) at
 /home/lapo/package /tmp/rsync-2.6.2/main.c(1048)
_exit_cleanup(code=23, file=/home/lapo/package/tmp/rsync-2.6.2/main.c,
 line=1048 ): about to call exit(23)


So, what's going on here? Am I missing something in the docs, is something
 wrong in the docs or is this a bug?

Thanks,

Jim Gallagher
Cypress, CA
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the rsync mailing list