From 1ab7337d222d298cc842cdf9d4c2b14c94b4f1f3 Mon Sep 17 00:00:00 2001 From: Julien Lutran Date: Fri, 28 Aug 2026 16:03:35 +0200 Subject: [PATCH] restic-backup: db-exclude (legacy plakar-db-exclude still honored, with a warning) Co-Authored-By: Claude Fable 5 --- restic-backup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/restic-backup.sh b/restic-backup.sh index 0ce7c8e..0741497 100755 --- a/restic-backup.sh +++ b/restic-backup.sh @@ -28,7 +28,12 @@ set -u REPO=s3:s3.sbg.io.cloud.ovh.net/restic-data PATHS_FILE=/root/scripts/restic-paths EXCLUDE_FILE=/root/scripts/restic-exclude -DB_EXCLUDE_FILE=/root/scripts/plakar-db-exclude # same opt-out list, same format +DB_EXCLUDE_FILE=/root/scripts/db-exclude +# legacy name from the plakar era — keep working until the file is renamed +[ -r "$DB_EXCLUDE_FILE" ] || [ ! -r /root/scripts/plakar-db-exclude ] || { + DB_EXCLUDE_FILE=/root/scripts/plakar-db-exclude + echo "note: using legacy $DB_EXCLUDE_FILE — rename it to /root/scripts/db-exclude" >&2 +} DUMP_DIR=/backup/dumps LOCKFILE=/run/lock/restic-backup.lock ENVFILE=/root/.restic-env