Commit graph

3 commits

Author SHA1 Message Date
dev
ba10e70830 Backup script resolves symlinks, aborts without DB
Invoking via ./backup.sh symlink made dirname escape the repo and sqlite
created an empty DB in the parent dir. Now uses readlink -f with a
location check plus a guard that refuses to run without ./whaleprep.db.
2026-10-13 09:06:45 +05:30
dev
288ccef090 Backup script removes same-day snapshot before VACUUM INTO
VACUUM INTO refuses to overwrite, so re-runs silently kept stale data
(backup showed 6 users, live had 2). Caught by comparing counts.
2026-10-13 09:05:17 +05:30
dev
ad8e878af8 Daily SQLite backup script (VACUUM INTO, 7-day rotation)
Live user data had only a stale pre-migration backup. First snapshot
verified: 9,837 questions, 6 users. Termux has no cron; script is manual
or Tasker-driven.
2026-10-13 00:06:20 +05:30