Backups, the comic
The crate that comes back.
The same kitchen as the volumes comic. The pantry has to survive more than a new cook: a spilled pot, a broken disk, a fire. So the crates are packed tight, checked, locked and driven elsewhere, and none of it counts until a crate can go back.
1 A crate you can trust
2 While the cooks are busy
3 Out of the building
4 Putting it back
The cheat sheet
Every picture above, in the app’s words.
- The kitchen porter
- A short-lived helper container that reads the volume
- A crate packed tight
- A .tar.zst archive
- The slip
- The .json beside it: volume, machine, size and sha256
- Checked against the slip
- Read back after writing; if it does not match, it goes away
- The van at three
- A schedule at a fixed time, daily or weekly
- A van for every kitchen
- A schedule belongs to its machine
- Still stirring
- The volume is in use: skip and try again every hour, or pause
- “Third skip. Boss?”
- A notification after three skips in a row
- Everything written out
- A dump: pg_dumpall, mysqldump or mariadb-dump, mongodump
- Lid on, lid off
- The labels docker-volume-backup.archive-pre and archive-post
- The padlock
- Encryption with age and your backup password
- The off-site van
- A destination: SFTP, S3 or WebDAV
- The sign on the storehouse
- The fingerprint of the SFTP server
- Wrong key, nothing touched
- The whole backup is checked before anything stops or changes
- A second pantry, to look first
- Restore into a new volume
- A crate of what was there
- A backup of the volume before it is overwritten
Now pack your first crate.
A schedule at a fixed time, checked after writing, encrypted with your password, off to SFTP, S3 or WebDAV, and for a database its own dump.