mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-08 11:52:32 +01:00
override for when to prevent automatic backups
The mainscript does check if when is set to 'manual'. If so it does not start any backups automatically. Change-Id: I2be2f07382fd06f2f7a2ca8c39cc9547d552d40a
This commit is contained in:
parent
5cc80402dd
commit
efc98ec3f3
@ -124,6 +124,11 @@ These values for 'when' are invalid:
|
|||||||
when = tuesday at 2
|
when = tuesday at 2
|
||||||
when = tues at 02
|
when = tues at 02
|
||||||
|
|
||||||
|
The value 'manual' can be set that backupninja can only be
|
||||||
|
triggered manually.
|
||||||
|
|
||||||
|
when = manual
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.SH DEFAULTS
|
.SH DEFAULTS
|
||||||
|
|
||||||
|
@ -326,6 +326,8 @@ function process_action() {
|
|||||||
elif [ "$when" == "hourly" ]; then
|
elif [ "$when" == "hourly" ]; then
|
||||||
info ">>>> starting action $file (because 'when = hourly')"
|
info ">>>> starting action $file (because 'when = hourly')"
|
||||||
run="yes"
|
run="yes"
|
||||||
|
elif [ "$when" == "manual" ]; then
|
||||||
|
debug ">>>> skipping $file because the 'when' configuration is set to manual"
|
||||||
else
|
else
|
||||||
IFS=$'\t\n'
|
IFS=$'\t\n'
|
||||||
for w in $when; do
|
for w in $when; do
|
||||||
|
Loading…
Reference in New Issue
Block a user