← Categories

Operations

Backups, secrets, and patterns for reliable services: graceful shutdown, health checks, resilience to failures.

Backups

What a backup isn't, RPO and RTO, 3-2-1, snapshots, RAID, databases, and restic.

01 · theory
What a backup is not

RAID, replication, and snapshots look like insurance, but they protect against different things. We break down which data loss scenario each mechanism actually covers.

12 min · easy
02 · theory
RPO and RTO: the two numbers your backup scheme grows from

How much data you can afford to lose, and how fast the system must come back up. How these requirements determine backup frequency and storage method.

11 min · easy
03 · theory
The 3-2-1 rule and why two more numbers got added to it

Three copies, two kinds of media, one copy off-site. What immutable storage adds, and why zero verification errors became part of the scheme.

12 min · easy
04 · theory
Full, incremental, differential backups, and how long to keep them

How restore chains work, how deduplication differs from an incremental backup, and how the grandfather-father-son retention scheme works.

13 min · medium
05 · theory
Snapshots: LVM, ZFS, and disks in the cloud

How a snapshot happens in a second, how copy-on-write differs from a copy, and why the difference between crash-consistent and application-consistent matters for a database.

13 min · medium
06 · theory
RAID: what it actually gives you

Mirroring, parity, and striping in plain terms. Degradation, rebuild, the risk of a second failure, and why RAID belongs in a backup track.

13 min · medium
07 · theory
Database backups: logical, physical and PITR

How pg_dump differs from copying the cluster's files, why you need a WAL archive, and how to restore to the minute before a bad query.

14 min · medium
08 · theory
restic in practice: repository, snapshots, restore

File backup with deduplication and encryption: init, backup, snapshots, restore, forget with prune, and check.

15 min · medium
09 · quiz
Check: backups

Nine questions on RPO and RTO, the 3-2-1 rule, snapshots, RAID, PITR, and restic. You can retake it.

8 min · medium

Operations

Application secrets and incident reviews.

Application patterns

Graceful shutdown, health checks, config, resilience, idempotency.