Comment 0 for bug 1309710

Revision history for this message
Steve Beattie (sbeattie) wrote :

In ubuntu 14.04 LTS, rsnapshot 1.3.1-4 is broken when 'ssh_args' are set in the rsnapshot configuration file. For example, I set ssh_args to '-p 22022', which causes my rsnapshot backup to fail with he following error:

  rsync: Failed to exec /usr/bin/ssh -p 22022: No such file or directory (2)
  rsync error: error in IPC code (code 14) at pipe.c(85) [Receiver=3.1.0]

This worked in saucy's 1.3.1-3 rsnapshot; the newer version has changed the way rsync is invoked from rsnapshot, passing an array to perl's system() function (which is not interpreted by a shell before being exec()ed) rather than a constructed single string, which is interpreted by a shell, and thus requires the arguments passed to rsync's -rsh argument to be quoted so as to be gathered into a single argument by the shell.

(This was also reported in debian bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=717451)