diff --git a/man/backupninja.conf.5 b/man/backupninja.conf.5 index ff6b055330097a4a24ff0fd0c4606318f3965324..75c8078bcd3fdb3ed65533a5485b8e28b2f1e4d3 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 10a8c6632b453f1cb48b8414b8c21243f09dcaf7..10a3eafbd24a1c6f548af1c9f3cacde25d047409 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