Notes on infrastructure

Keeping a small stack boring: one host, a few services, short checklists.

18 November 2026

Backups that you actually restore

A backup only counts once it has been unpacked somewhere else. A tarball that nobody has ever listed with tar -tzf is a rumour, not a backup. The routine that survived contact with reality is short:

tar czf backup.tgz -C /srv app data
tar -tzf backup.tgz | head
sha256sum backup.tgz >> checksums.txt

The listing step is the important one: it catches permission problems and forgotten directories while there is still time to fix them. Checksums protect against the quiet case, a file that copies fine but is no longer readable.

2 November 2026

Disk space is a budget, not a warning

A machine at 83% used is not unhealthy, but it is out of slack. Log rotation, package caches and old container images are the usual suspects, in that order. Two commands cover most of it:

du -xh / 2>/dev/null | sort -h | tail -n 15
docker system df

Anything that grows without a ceiling — access logs, generated thumbnails, downloaded archives — deserves a size limit the day it is introduced, not the day it fills the volume.

21 October 2026

Small changes, one at a time

  • Change one thing, then look at the service before changing the next.
  • Keep the previous configuration next to the new one, with a timestamp.
  • Validate the config before reloading, and reload before restarting.
  • Write down the rollback command at the moment you make the change.

Most outages on a single host are not caused by a bad decision. They are caused by three reasonable decisions applied at once, with no pause in between to see what the first one did.