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