[Bug 1309710] Re: Backups broken when "ssh_args" are set
Lupe Christoph
lupe at lupe-christoph.de
Sun Apr 27 22:45:40 UTC 2014
To describe the fix explicitly for impatient people like me:
Change line 3459 in /usr/bin/rsnapshot, remove the two escaped quotes
(\"). The result should be this:
push( @rsync_long_args_stack, "--rsh=$config_vars{'cmd_ssh'} $ssh_args"
);
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1309710
Title:
Backups broken when "ssh_args" are set
Status in “rsnapshot” package in Ubuntu:
Confirmed
Status in “rsnapshot” package in Debian:
New
Bug description:
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rsnapshot/+bug/1309710/+subscriptions
More information about the Ubuntu-sponsors
mailing list