PreviewSample dataNothing is saved
ryn AlphaAdmin

Backups

Comes with productionSample data

When 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.

Not set up
Last backupNone yetNo backup job has ever run
Off-site copyNot set upNeeds the second machine and a bucket
Restore testNever runPlanned: every Sunday at 08:00 UTC
Planned copies2per databaseOne fast, one off-site, both encrypted

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.

  1. A second machine and an off-site bucketCosts are entered on Fixed costs; the storage line is waiting there.
  2. Pass-phrases in the encrypted secrets filesNames appear on Secret names and rotation once they exist.
  3. 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.

What it holdsHow it will be copiedKept forLast backupSizeRestore test
Research databaseB1
Reasoning tables, score, strategies, historyNopgBackRest, continuous plus weekly full14 days fast, 35 days off-siteNone yetNot knownNot run
Ingestion databaseB2
Feeds' tables and raw archivesNopgBackRest (same stanza)14 days fast, 35 days off-siteNone yetNot knownNot run
Strategy databaseB3
SignalsNopgBackRest (same stanza)14 days fast, 35 days off-siteNone yetNot knownNot run
Platform databaseB4
Accounts, billing, engagement, email, portfolioYespgBackRest plus a nightly dumpDumps: 35 daily and 12 monthlyNone yetNot knownNot run
Reader identityB5
Readers' sign-in details and sessionsYespgBackRest plus a nightly dumpDumps: 35 daily and 12 monthlyNone yetNot knownNot run
Your own identityB6
Your admin sign-inYespgBackRest plus a nightly dumpDumps: 35 daily and 12 monthlyNone yetNot knownNot run
Analytics databaseB7
Usage events under pseudonymous idsYespgBackRest onlySame as the repositoriesNone yetNot knownNot run
Control databaseB8
Settings, prompts, audit log, job runsYespgBackRest, nightly dump and a nightly exportDumps: 35 daily and 12 monthlyNone yetNot knownNot run
AI gateway databaseB9
Virtual keys, budgets, spend logNopgBackRest onlySame as the repositoriesNone yetNot knownNot run
Control exportsB10
Nightly settings snapshot and the audit chain's last hashNoNightly copy at 02:30 UTC7 years for hashes, 400 days for snapshots; cannot be deleted for 400 daysNone yetNot knownNot run
Files (invoices, exports, attachments)B11
Invoice PDFs, data exports, support attachmentsYesVersioned bucket plus a nightly copy to the second machineInvoices 10 years; deleted files kept 30 daysNone yetNot knownNot run
Secrets (encrypted files)B12
The encrypted secrets files, never in clearNoGit on every change plus a nightly bundle400 daysNone yetNot knownNot run
Configuration and codeB13
Every repository, placement file, dashboards, runbooksNoGit on every push plus a nightly bundle of all repositories400 daysNone yetNot knownNot run
Container imagesB14
Every image that ran in productionNoRegistry plus a mirror on the second machineThe last 20 releases are never deletedNone yetNot knownNot run
Error reportsB15
Scrubbed error reportsNoNightly dump at 02:45 UTC14 daysNone yetNot knownNot run
Research databaseNot run
Reasoning tables, score, strategies, historyIdB1Personal dataNoLast backupNone yet
Ingestion databaseNot run
Feeds' tables and raw archivesIdB2Personal dataNoLast backupNone yet
Strategy databaseNot run
SignalsIdB3Personal dataNoLast backupNone yet
Platform databaseNot run
Accounts, billing, engagement, email, portfolioIdB4Personal dataYesLast backupNone yet
Reader identityNot run
Readers' sign-in details and sessionsIdB5Personal dataYesLast backupNone yet
Your own identityNot run
Your admin sign-inIdB6Personal dataYesLast backupNone yet
Analytics databaseNot run
Usage events under pseudonymous idsIdB7Personal dataYesLast backupNone yet
Control databaseNot run
Settings, prompts, audit log, job runsIdB8Personal dataYesLast backupNone yet
AI gateway databaseNot run
Virtual keys, budgets, spend logIdB9Personal dataNoLast backupNone yet
Control exportsNot run
Nightly settings snapshot and the audit chain's last hashIdB10Personal dataNoLast backupNone yet
Files (invoices, exports, attachments)Not run
Invoice PDFs, data exports, support attachmentsIdB11Personal dataYesLast backupNone yet
Secrets (encrypted files)Not run
The encrypted secrets files, never in clearIdB12Personal dataNoLast backupNone yet
Configuration and codeNot run
Every repository, placement file, dashboards, runbooksIdB13Personal dataNoLast backupNone yet
Container imagesNot run
Every image that ran in productionIdB14Personal dataNoLast backupNone yet
Error reportsNot run
Scrubbed error reportsIdB15Personal dataNoLast backupNone yet
Showing 15 of 15Layout preview: no backup has run

Restore tests

Never run

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

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.