from solaris to linux: /usr/local/bin/rsync: No such file or directory

Michael Renner michael.renner at
Mon Apr 19 11:03:34 MDT 2010


I want to use rsysnc to get files from a linux box to a solaris server.

root at solaris:/root # which rsync
root at solaris:/var/log/r5backup # rsync --version
rsync  version 3.0.7  protocol version 30
Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others.
Web site:
    64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
    socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
    append, ACLs, no xattrs, iconv, no symtimes

root at linux:/root # which rsync
root at linux:~# rsync --version
rsync  version 2.6.9  protocol version 29
Copyright (C) 1996-2006 by Andrew Tridgell, Wayne Davison, and others.
Capabilities: 64-bit files, socketpairs, hard links, symlinks,
              batchfiles, inplace, IPv6, ACLs,
              64-bit system inums, 64-bit internal inums

# rsync --rsh="/bin/ssh -i /etc/r5backup/ssh-keys/r5backup_id_rsa -p 
22 " --log-file=/var/log/r5backup/1271674232.notebook.rsync -rlptgoDWzvvv  --link-dest=/zfspool/data/notebook/current//usr --no-implied-dirs 
root at  /zfspool/data/notebook/1271674232//usr 
>> /var/log/r5backup/1271674232.notebook.debug 

is the command that I use to transfer files from other solaris machines. 
Please note, that rsync is installed in /usr/local/bin/. Trying to use rsync 
with linux it fails:

2010/04/19 12:48:50 [17785] rsync error: received SIGINT, SIGTERM, or SIGHUP 
(code 20) at rsync.c(543) [Receiver=3.0.7]
2010/04/19 12:48:50 [17785] [Receiver] _exit_cleanup(code=20, file=rsync.c, 
line=543): about to call exit(20)

opening connection 
using: /bin/ssh -i /etc/r5backup/ssh-keys/r5backup_id_rsa -p 22 -l 
root /usr/local/bin/rsync --server --sender -vvvlWogDtprze.isf . /usr/src

bash: /usr/local/bin/rsync: No such file or directory
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) 

No wonder, because rsync is installed in /usr/bin/ on linux. And: it is in the 
path. If I create a symlink from /usr/bin/rsync to /usr/local/bin/rsync it 
works, but this can't be be solution? 

Any hint?
|Michael Renner      E-mail: michael.renner at  |
|D-81541 Munich      Germany        ICQ: #112280325 |
|Germany             Don't drink as root!      ESC:wq

More information about the rsync mailing list