diff --git a/man/backupninja.conf.5 b/man/backupninja.conf.5 index ff6b055..75c8078 100644 --- a/man/backupninja.conf.5 +++ b/man/backupninja.conf.5 @@ -124,6 +124,11 @@ These values for 'when' are invalid: when = tuesday at 2 when = tues at 02 +The value 'manual' can be set that backupninja can only be +triggered manually. + + when = manual + .TP .SH DEFAULTS diff --git a/src/backupninja.in b/src/backupninja.in index 10a8c66..10a3eaf 100755 --- a/src/backupninja.in +++ b/src/backupninja.in @@ -326,6 +326,8 @@ function process_action() { elif [ "$when" == "hourly" ]; then info ">>>> starting action $file (because 'when = hourly')" run="yes" + elif [ "$when" == "manual" ]; then + debug ">>>> skipping $file because the 'when' configuration is set to manual" else IFS=$'\t\n' for w in $when; do