Backups
Comes with productionSample dataWhen each backup last ran, how big it is, and whether a restore test passed. Today no backup exists: this page says so, and shows what it will show once backups run.
No backup of the live database exists yet
The system runs on one machine while it is built. Backups are set up together with production, on a second machine and an off-site bucket. The live data is on one disk only: if that machine is lost, it is lost.
The plan
What production will run. From architecture document 03, section 2.
- Copies
- Two encrypted copies of every database: a fast one on a second machine, and one off-site in a storage bucket from a different company.
- How often
- Continuous log shipping, a full copy every Sunday at 03:00 UTC and a difference copy every other night at 04:00 UTC.
- Restore test
- Every Sunday at 08:00 UTC a copy is restored from the off-site bucket into a throwaway database and checked. Once a month the fast copy is tested instead.
- How long copies are kept
- Fast copy: two full copies, about 14 days to go back to any minute. Off-site: five full copies, about 35 days.
- How much could be lost
- At most one minute from the fast copy and five minutes from the off-site one.
- Keys
- Each copy is encrypted; the pass-phrases live in the encrypted secrets files and in the owner's password manager, with a printed copy kept offline.
What comes first
In the order the work is done with production.
- A second machine and an off-site bucketCosts are entered on Fixed costs; the storage line is waiting there.
- Pass-phrases in the encrypted secrets filesNames appear on Secret names and rotation once they exist.
- The first full copy, then the first restore testEach run appears in Runs beside every other job.
Not backed up, on purpose
- Redis (a cache only)
- Metrics (kept 90 days)
- Logs (kept 30 days)
- Build caches
- Staging databases (rebuilt weekly)
What will be backed up
Fifteen stores, as set out in architecture document 03. Every last-backup, size and test cell is empty until the first backup runs.
| Last backup | Size | Restore test | |
|---|---|---|---|
Research databaseB1 | None yet | Not known | Not run |
Ingestion databaseB2 | None yet | Not known | Not run |
Strategy databaseB3 | None yet | Not known | Not run |
Platform databaseB4 | None yet | Not known | Not run |
Reader identityB5 | None yet | Not known | Not run |
Your own identityB6 | None yet | Not known | Not run |
Analytics databaseB7 | None yet | Not known | Not run |
Control databaseB8 | None yet | Not known | Not run |
AI gateway databaseB9 | None yet | Not known | Not run |
Control exportsB10 | None yet | Not known | Not run |
Files (invoices, exports, attachments)B11 | None yet | Not known | Not run |
Secrets (encrypted files)B12 | None yet | Not known | Not run |
Configuration and codeB13 | None yet | Not known | Not run |
Container imagesB14 | None yet | Not known | Not run |
Error reportsB15 | None yet | Not known | Not run |
Restore tests
Every Sunday a copy is restored from the off-site bucket into a throwaway database and checked. Each check reports pass or fail with its numbers.
- Every expected database exists after the restoreNot run
- The five largest tables of each database hold the same number of rows as when the copy was taken (within 2 percent)Not run
- The newest score, price and job-run rows are younger than 26 hours at the recovered timeNot run
- The reader identity database has as many readers as the live one hadNot run
- The audit log's chain verifies, and its newest hash matches the one stored off-siteNot run
- A nightly dump of the platform database restores into a second throwaway databaseNot run
Off-site copy
The second, independent copy. Nothing below exists yet.
- Storage bucket
- Not created
- Last upload
- None yet
- Size on the bucket
- Not known
- Encryption
- Planned: each copy encrypted before it leaves the machine
- Audit log hash copy
- Planned: the last hash of every day is copied off-site and cannot be deleted for 400 days
- Monthly cost
- An empty line on the cost page
This page is read-only: there is nothing to run until backups exist. The restore test is the proof that a backup works, so a backup that was never restored is never shown as good here.