backupninja/handlers
Silvio Rhatto b8b8b46fba Solve quoting issue with "su" (debian #683731) (upstream #4019)
A fix for debian #677410 on commit 29dcdbae introduces a new issue on wheezy
machines where some rsync_options gets out of the rsync command quotes when
invoked by su.

As reported, running backupninja through `bash -x` shows that the `--delete`
option from the rsync command is not included in the single quote for the `su
-c` command:

    nice -n 0 su -c '/usr/bin/rsync -av' --delete '--recursive
    --delete-excluded    //home/ /tmp/test//home//'

This patch attempt to solve that issue by using the intermediary variable
$command.
2013-10-26 13:18:19 -02:00
..
dsync.in dsync: break out of the while loop using 'break' instead of setting the failedcount number, otherwise this will trigger the warning later 2012-11-26 12:49:43 -05:00
dup.helper.in Clarify that duplicity/paramiko doesn't support spaces between -o and IdentityFile anymore. 2013-07-23 12:01:02 +02:00
dup.in dup: Gracefully handle legacy spaces between -o and IdentityFile. 2013-07-23 12:01:37 +02:00
ldap.helper.in Add a vim modeline with indentation settings. 2009-05-23 10:42:20 +02:00
ldap.in Fix reliance on bash for pipefail. (Closes: #602374) 2010-11-07 13:07:26 +01:00
maildir.in remove rsyncflags and excludes from maildir handler, they are not used anywhere 2012-03-27 11:58:18 -04:00
makecd.helper.in Add a vim modeline with indentation settings. 2009-05-23 10:42:20 +02:00
makecd.in Add a vim modeline with indentation settings. 2009-05-23 10:42:20 +02:00
Makefile.am Install handlers as pkgdata_DATA, instead of their .in files. 2012-05-15 17:52:49 +02:00
mysql.helper.in Add a vim modeline with indentation settings. 2009-05-23 10:42:20 +02:00
mysql.in mysql: use --skip-events when backing up the performance_schema database (Closes: #673572) 2012-05-20 13:11:12 +02:00
pgsql.helper.in Enable pg_dump format option. 2010-10-12 10:49:34 +02:00
pgsql.in pgsql: don't produce empty uncompressed backups (Redmine#3820). 2012-02-25 13:30:09 +01:00
rdiff.helper.in rdiff.helper: add output_as_info support. 2013-07-09 21:45:44 +02:00
rdiff.in Add option to include rdiff-backup output in reports. 2013-06-08 08:59:03 +02:00
rsync.in Solve quoting issue with "su" (debian #683731) (upstream #4019) 2013-10-26 13:18:19 -02:00
sh.in Allow 'when = XXX' in sh jobs. 2011-08-17 12:15:37 +02:00
svn.in All handlers: stop using "local VAR" outside functions. (Closes: #530647) 2011-04-25 18:55:58 +02:00
sys.helper.in Delete trailing whitespace. 2013-09-23 10:19:26 +00:00
sys.in Delete trailing whitespace. 2013-09-23 10:19:26 +00:00
tar.helper.in xz support for tar handler 2013-06-28 09:08:39 +02:00
tar.in test mode support for tar handler 2013-06-30 12:20:25 +02:00
trac.in Add a vim modeline with indentation settings. 2009-05-23 10:42:20 +02:00
wget Fix typos. 2012-02-25 14:01:49 +01:00