backup-test: backup and restore through the chart's CronJobs (K-L6) #29

Merged
jcoffey-dev merged 1 commits from feat/backup-test into main 2026-11-19 21:04:08 +00:00
Owner

K-L6, closes #13; tests inbuxa/inbuxa-charts#28 and inbuxa/inbuxa-server#491.

The chart's backup CronJob exports to a Garage bucket; then fresh stores (database dropped and made again, blob bucket emptied), the import from the newest finished export by a Job built from the CronJob's own pod, and the chart back up. Every mailbox's count and message hashes must match, and both store check CronJobs must find nothing wrong. RESTORE_ONLY=1 restores the newest export, the way back from a failed run; a failed import leaves the server pods stopped.

s3.py (stdlib SigV4) and mailbox-digest.py (IMAP digest, test mail) come with it. Passes on inbuxa-lab/server:kc11.

K-L6, closes #13; tests inbuxa/inbuxa-charts#28 and inbuxa/inbuxa-server#491. The chart's backup CronJob exports to a Garage bucket; then fresh stores (database dropped and made again, blob bucket emptied), the import from the newest finished export by a Job built from the CronJob's own pod, and the chart back up. Every mailbox's count and message hashes must match, and both store check CronJobs must find nothing wrong. `RESTORE_ONLY=1` restores the newest export, the way back from a failed run; a failed import leaves the server pods stopped. `s3.py` (stdlib SigV4) and `mailbox-digest.py` (IMAP digest, test mail) come with it. Passes on `inbuxa-lab/server:kc11`.
jcoffey-dev added 1 commit 2026-11-19 20:49:21 +00:00
A run of the backup CronJob exports the store to a Garage bucket; then
a fresh cluster's stores (the database dropped and made again, the blob
bucket emptied), the import from the newest finished export by a Job
made from the CronJob's own pod, and the chart back on the restored
store. Every mailbox's count and message hashes (read whole over IMAP)
must match, and both store check CronJobs must find nothing wrong.
RESTORE_ONLY=1 restores the newest export: the way back from a failed
run. A failed import leaves the server pods stopped, never started on
the empty store.

s3.py: just enough S3, standard library only (SigV4, path-style).
mailbox-digest.py: an account's mail as one line per mailbox, and test
mail with attachments.
jcoffey-dev merged commit 5014265cb7 into main 2026-11-19 21:04:08 +00:00
jcoffey-dev deleted branch feat/backup-test 2026-11-19 21:04:08 +00:00
Sign in to join this conversation.