feat: automate verified SQLite backups and safe recovery

This commit is contained in:
syntaxbullet
2026-09-04 18:28:28 +02:00
parent 32002151e0
commit 661bc6c346
10 changed files with 227 additions and 2 deletions

View File

@@ -16,3 +16,10 @@ DISCORD_BOT_TOKEN=
DISCORD_SHARING_CHANNEL_ID=
# Optional comma-separated Discord user IDs permitted to post. Empty permits all accounts.
DISCORD_SHARING_ALLOWED_USER_IDS=
# Production snapshots, plus a snapshot before migrations. Paths resolve beside DATABASE_PATH.
BACKUP_ENABLED=true
BACKUP_DIR=backups
BACKUP_INTERVAL_HOURS=24
BACKUP_RETAIN=7
# Existing mounted off-machine backup directory (absolute path recommended).
BACKUP_REPLICA_DIR=