From 8573499131421b27d6409bc4574052479c6254ee Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Wed, 30 Aug 2023 03:47:35 +0200 Subject: [PATCH] Improved borgmatic files after the bookworm upgrade. --- Plan Borg/bin/dumps | 10 +++------- Plan Borg/models/model-conf-remote-client.yaml | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Plan Borg/bin/dumps b/Plan Borg/bin/dumps index 3236292..146c676 100755 --- a/Plan Borg/bin/dumps +++ b/Plan Borg/bin/dumps @@ -8,10 +8,6 @@ if [ ! -d $DUMP_DIR ]; then mkdir -p $DUMP_DIR fi -if [ $(find "$DUMP_DIR" -cmin -120 -type d | wc -l) -eq 0 ]; then - ./dump-psql - ./dump-msql - ./dump-influx -else - echo "Very recent dump detected, dumps skipped." -fi +./dump-psql +./dump-msql +./dump-influx diff --git a/Plan Borg/models/model-conf-remote-client.yaml b/Plan Borg/models/model-conf-remote-client.yaml index 1005869..756caed 100644 --- a/Plan Borg/models/model-conf-remote-client.yaml +++ b/Plan Borg/models/model-conf-remote-client.yaml @@ -24,7 +24,7 @@ output: color: false hooks: - before_backup: + before_everything: - echo "== Dumps starting…" - /etc/borgmatic/hooks/dumps - echo "== Dumps done."