Genericize backup documentation and defaults
This commit is contained in:
1 parent
3d52a9af33
commit
ac6823f840
5 files changed
+25
-21
No files matched your search
+3
-3
@@ -20,10 +20,10 @@ PULL_IMAGES=1
|
||||
START_TIMEOUT=90
|
||||
WAIT_INTERVAL=3
|
||||
START_RETRIES=1
|
||||
LOCK_FILE="/run/lock/zorruno-docker-backup.lock"
|
||||
LOCK_FILE="/run/lock/docker-backup.lock"
|
||||
ZSTD_EXTRA_OPTS="-T0 -12"
|
||||
TAR_EXCLUDES=""
|
||||
BACKUP_HISTORY_FILE="/dockervolumes/openclaw/backup-status-mcp/history/backup-runs.jsonl"
|
||||
BACKUP_HISTORY_FILE="/var/lib/docker-backup/history.jsonl"
|
||||
BACKUP_HISTORY_DAYS=30
|
||||
BACKUP_REQUIRE_ENCRYPTED_STORAGE=0
|
||||
# Optional MQTT reporting and command-listener defaults.
|
||||
@@ -80,7 +80,7 @@ is_true() {
|
||||
}
|
||||
|
||||
# Never let local backups silently fall back to the unencrypted root filesystem
|
||||
# on hosts that opt in (for example, Beaver's encrypted backup drive).
|
||||
# on hosts that opt in.
|
||||
if is_true "${BACKUP_REQUIRE_ENCRYPTED_STORAGE:-0}" && [[ "$BACKUP_ROOT" == "/dockerbackups" ]]; then
|
||||
if ! mountpoint -q /srv/storage || ! mountpoint -q "$BACKUP_ROOT"; then
|
||||
die "Backup root is not mounted on encrypted storage; refusing to run."
|
||||
|
||||
Reference in new issue
Block a user