This is a debian machine. #: /usr/bin/rsync -av -e /usr/bin/ssh /usr/box1backup-072104.tar.gz root@box2:/root/box1backup-072104.tar.gz bash: rsync: command not found rsync: connection unexpectedly closed (0 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(165) that exact same command works on a redhat box. Why is bashing saying that it cant find rsync even though rsync is then executed? Im pretty confused. -Drew
On Thu, Jul 22, 2004 at 10:26:45AM -0400, Drew Weaver wrote:> Why is bashing saying that it cant find rsync even though rsync is then > executed?The remote bash is saying that. You can either fix the PATH on the remote box (e.g. make it so that "ssh -l root box2 rsync" outputs the rsync help text) or supply the --rsync-path=/usr/local/bin/rsync (or whatever it should be) to rsync. ..wayne..