rsync over ssh question

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


On Fri, 11 Apr 2003, Bart Boelaert bart.boelaert-at-pandora.be |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

Bart:

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
("ssh_1142.sh") which contains the command and options you want to use,
then call rsync like:

rsync -e /path/to/ssh_1142.sh -av --progress --delete -z ./
   rsyncuser@[backupserverip]:testdir

This solves those nasty execvp() failed problems.

  -- Steve



More information about the rsync mailing list