mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
feat: implement SQLite backup & data integrity plan (Phases 2-4)
This commit is contained in:
5
justfile
5
justfile
@@ -176,6 +176,11 @@ query:
|
||||
backup:
|
||||
@sqlite3 app/storage/xamxam.db .dump > app/storage/backup_$(date +%Y%m%d_%H%M%S).sql
|
||||
|
||||
[group('database')]
|
||||
backup-snapshot:
|
||||
# Hot backup using SQLite's .backup API (WAL-safe), then gzip.
|
||||
@DB_PATH=app/storage/xamxam.db BACKUP_DIR=app/storage/backups RETENTION_DAYS=30 bash scripts/backup-sqlite.sh
|
||||
|
||||
# ============================================================================
|
||||
# Utils
|
||||
# ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user