]> gitweb.fluxo.info Git - puppet-backupninja.git/commitdiff
fix the $when default parameter to use the correct syntax
authorMicah Anderson <micah@riseup.net>
Mon, 9 Mar 2009 20:32:28 +0000 (16:32 -0400)
committerMicah Anderson <micah@riseup.net>
Mon, 9 Mar 2009 20:32:28 +0000 (16:32 -0400)
If when is set to just '01:00' (as it was previously), then backups
will never run due to the time format being specified
incorrectly. Backupninja considers '01:00' to be the day of the week
and every time it wakes up to see if it is time to do a backup it
determines that it is currently not the day "01:00" and so it
shouldn't do a backup now. In otherwords, it will never do a backup at
this rate.

I've filed a bug for this issue, because it probably should at least
let you know that you've failed.

    https://labs.riseup.net/code/issues/show/640

manifests/config.pp

index 668904ec8e33234a21485561fd933213cbb8ec7d..34e3a0e4c9cd19da7fc3db71c63d1a44ec7e57f5 100644 (file)
@@ -3,7 +3,7 @@
 # write them to the config file as-is.
 #
 define backupninja::config(
-  $configfile = '/etc/backupninja.conf', $loglvl = 4, $when = '01:00',
+  $configfile = '/etc/backupninja.conf', $loglvl = 4, $when = 'everyday at 01:00',
   $reportemail = 'root', $reportsuccess = false, $reportwarning = true,
   $reporthost = $reporthost, $reportuser = $reportuser,
   $reportdirectory = $reportdirectory,