restic-backup: db-exclude (legacy plakar-db-exclude still honored, with a warning)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
75760ba303
commit
1ab7337d22
+6
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user