MiniCTRMSearch

MiniCTRM - Build Tutorial 634: Reliability: backups, the restore drill, health checks, logs, upgrades

→ to begin · N for the speaker notes

On a phone: Next or a swipe left to begin, Notes for the words.

What you'll learn

A health endpoint that answers in one call with a status page under Tools, structured logs with a request id on every line, a nightly backup job whose age shows on the Launcher, a weekly restore drill that restores last night's backup into a fresh copy and proves it, a release procedure that backs up first and upgrades by migration with a pre-release test on real data and a training copy, failed nights counted where a person looks, and a Troubleshooting screen of read-only self-checks.

  • Seven promises, and the health check – The seven things a firm means by trust, how each is kept, and a health endpoint that answers in one call.
  • A log you can follow – What a log is, a level, a request id, retention; every line the same shape, a file per day, the errors in a table.
  • Backups, and the drill that proves them – A consistent copy while the system runs, kept N days; a weekly restore into a fresh copy, because a backup nobody has restored is a hope.
  • Upgrade by migration, with a backup first – The release day as a script and a checklist, the migrations tested on last night's backup, and a copy for training.
  • Failed nights and checks that only read, then ship – A count of unacknowledged failures where a person looks, a Troubleshooting screen of read-only self-checks; then /ship.
  • How MiniCTRM did it – Database Maintenance and Troubleshooting, and the seven promises read across the two systems.

Before you start

The lessons this one builds on: 621 End of day: close the market, run the valuation, automate the night.

Copyright 2026-2027 Brian Shydlo. MiniCTRM is source-available under the PolyForm Strict License 1.0.0 (https://polyformproject.org/licenses/strict/1.0.0): free for learning and other noncommercial use; no changes and no redistribution; commercial use needs permission.

Welcome

There tomorrow, with yesterday's data

1 / 16
There tomorrow, with yesterday's data
Seven promises, and the health check

Seven promises, and how each is kept

2 / 16
Seven promises, and how each is kept
Seven promises, and the health check

The health endpoint and the status page

3 / 16
The health endpoint and the status page
A log you can follow

A log, from zero

4 / 16
A log, from zero
A log you can follow

Structured logs

5 / 16
Structured logs
Backups, and the drill that proves them

A backup nobody has restored is a hope

6 / 16
A backup nobody has restored is a hope
Backups, and the drill that proves them

Scheduled backups

7 / 16
Scheduled backups
Backups, and the drill that proves them

The restore drill

8 / 16
The restore drill
Upgrade by migration, with a backup first

Upgrade by migration, with a backup first

9 / 16
Upgrade by migration, with a backup first
Upgrade by migration, with a backup first

The release procedure, the pre-release test and a training copy

10 / 16
The release procedure, the pre-release test and a training copy
Failed nights and checks that only read, then ship

Checks that only read

11 / 16
Checks that only read
Failed nights and checks that only read, then ship

Failed jobs, and a Troubleshooting screen

12 / 16
Failed jobs, and a Troubleshooting screen
Failed nights and checks that only read, then ship

Ship it

13 / 16
Ship it
How MiniCTRM did it

Database Maintenance

14 / 16
Database Maintenance
How MiniCTRM did it

Troubleshooting

15 / 16
Troubleshooting
What you have now

What you have now

16 / 16
What you have now

You have finished lesson 634, Reliability: backups, the restore drill, health checks, logs, upgrades.

Where next?

← → move · N notes · Home / End