Michael Renner
2010-Apr-19 17:03 UTC
from solaris to linux: /usr/local/bin/rsync: No such file or directory
Moin, I want to use rsysnc to get files from a linux box to a solaris server. root at solaris:/root # which rsync /usr/local/bin/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: http://rsync.samba.org/ Capabilities: 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 /usr/bin/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. <http://rsync.samba.org/> 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 192.168.5.30:/usr/src /zfspool/data/notebook/1271674232//usr>> /var/log/r5backup/1271674232.notebook.debug2>>/var/log/r5backup/1271674232.notebook.stderr 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 192.168.5.30 -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) [Receiver=3.0.7] 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 gmx.de | |D-81541 Munich Germany ICQ: #112280325 | |Germany Don't drink as root! ESC:wq
Kyle Lanclos
2010-Apr-19 17:49 UTC
from solaris to linux: /usr/local/bin/rsync: No such file or directory
You want to use the --rsync-path option. --Kyle
Wayne Davison
2010-May-03 00:52 UTC
from solaris to linux: /usr/local/bin/rsync: No such file or directory
On Mon, Apr 19, 2010 at 10:03 AM, Michael Renner <michael.renner at gmx.de>wrote:> opening connection using: /bin/ssh -i > /etc/r5backup/ssh-keys/r5backup_id_rsa -p 22 > 192.168.5.30 -l root /usr/local/bin/rsync --server --sender > -vvvlWogDtprze.isf . /usr/src >Did something force the --rsync-path=/usr/local/bin/rsync option in rsync? Maybe someone compiled that in as the default RSYNC_PATH setting? Or maybe rsync is a shell script that adds that option? See if you can override it by specifying --rsync-path=rsync That's the normal default ("rsync"), but someone may have configured rsync using the --with-rsync-path=/usr/local/bin/rsync option to configure, in which case you'll need to override it using the option above. ..wayne.. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20100502/3c3c50b9/attachment.html>