Improved borgmatic files after the bookworm upgrade.
This commit is contained in:
parent
bd74162a3e
commit
8573499131
|
@ -8,10 +8,6 @@ if [ ! -d $DUMP_DIR ]; then
|
||||||
mkdir -p $DUMP_DIR
|
mkdir -p $DUMP_DIR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $(find "$DUMP_DIR" -cmin -120 -type d | wc -l) -eq 0 ]; then
|
|
||||||
./dump-psql
|
./dump-psql
|
||||||
./dump-msql
|
./dump-msql
|
||||||
./dump-influx
|
./dump-influx
|
||||||
else
|
|
||||||
echo "Very recent dump detected, dumps skipped."
|
|
||||||
fi
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ output:
|
||||||
color: false
|
color: false
|
||||||
|
|
||||||
hooks:
|
hooks:
|
||||||
before_backup:
|
before_everything:
|
||||||
- echo "== Dumps starting…"
|
- echo "== Dumps starting…"
|
||||||
- /etc/borgmatic/hooks/dumps
|
- /etc/borgmatic/hooks/dumps
|
||||||
- echo "== Dumps done."
|
- echo "== Dumps done."
|
||||||
|
|
Loading…
Reference in New Issue