This message means rsync is not in the $PATH of the remote user on the remote system.

$ rsync -av –progress Solaris_8_2004-02/ [email protected]:/export/install/OS
sh: rsync: not found
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(454) [sender=2.6.9]

On the remote system:

# echo $SHELL
/sbin/sh
# ls -l /usr/local/bin/rsync
-rwxr-xr-x   1 bin      bin       512108 Dec  1  2006 /usr/local/bin/rsync
# which rsync
no rsync in /usr/bin /usr/sbin /usr/ccs/bin /usr/sbin /usr/bin

In this case, rsync is not in the root user’s $PATH.

You may specify a path to the remote system’s rsync using–rsync-path.

Example:
$ rsync -av –progress –rsync-path=/usr/local/bin/rsync Solaris_8_2004-02/ [email protected]:/export/install/OS

 

source: http://www.brandonhutchinson.com/sh_rsync_not_found.html

Last modified: April 30, 2012

Author

Comments

Write a Reply or Comment

Your email address will not be published.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

This site uses Akismet to reduce spam. Learn how your comment data is processed.