sh: rsync: not found

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
# 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.

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



Leave a Reply

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](

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

Here is some inline `code`.

For more help see

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>