rsync over ssh question

Steve Bonds knnf6cy7w001 at
Sat Apr 12 04:07:03 EST 2003

On Fri, 11 Apr 2003, Bart Boelaert |Rsync List| wrote:

> Hello,
> I'm trying to make rsync work over ssh. I've read several possibilities how
> to do this, but I haven't succeeded so far. Here's what I want to accomplish

... trimmed ...

> Here is the command I tried to use :
> rsync -e "ssh -p 1142 -l sshuser [firewallip] -" -av --progress --delete -z
> ./ rsyncuser@[backupserverip]:testdir


The problem is that rsync does not seem to handle options on its
"rsh" command properly.  Lots of commands that use ssh seem to have this
problem, so my workaround is to create a small shell script
("") which contains the command and options you want to use,
then call rsync like:

rsync -e /path/to/ -av --progress --delete -z ./

This solves those nasty execvp() failed problems.

  -- Steve

More information about the rsync mailing list