when=XXX did work already. This patch allow to write this with spaces around the
equal sign - as in every other backup.d/ file.
Jacob Anawalt <jlanawalt@gmail.com> -- pg_dump format option
Sergio Talens-Oliag <sto@debian.org> -- pipefail fixes
Bruno Bigras <bigras.bruno@gmail.com> -- enable tar handler in the build system
+casper -- Allow 'when = XXX' with spaces in .sh files.
+version 0.9.10 -- UNRELEASED
+ handler changes:
+ sh:
+ . Allow 'when = XXX' with spaces (Redmine#2769).
+ Thanks to casper for the patch.
version 0.9.9 -- May 15, 2011
backupninja changes
. Use locking to avoid running concurrent instances of the same backup
+# Note: the spaces around the equal sign ('=') are optional.
+when = saturdays at 05:30
dpkg --get-selections > /var/backups/dpkg-selections.txt
# runs the file /etc/backup.d/scriptname.sh
#
+# No-op function so that 'when = XXX' can be written as such in
+# backup.d/*.sh, i.e. with spaces around the equal sign - as in every
+# other backup.d/ file.
+function when() {
+ true
+}
+
[ $test ] || ( . $1 )