Improved borgmatic files after the bookworm upgrade.

This commit is contained in:
Christian P. MOMON 2023-08-30 03:47:35 +02:00
parent bd74162a3e
commit 8573499131
2 changed files with 4 additions and 8 deletions

View File

@ -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

View File

@ -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."