notes / backups
The 3-2-1 rule for people with one VPS
You don't need a storage cluster to have decent backups. A nightly dump, an off-site copy and a restore test once a month go a long way.
pg_dump -Fc app > /backup/app-$(date +%F).dump
rclone copy /backup remote:archive --max-age 24h
notes / dns
Low TTLs are cheap insurance
If you ever plan to move a service, drop the TTL a few days before. Five minutes of caching is plenty for a small site.
notes / reverse-proxy
Why I moved from nginx to Caddy for small projects
Automatic certificates and a config file that fits on one screen. For anything with a handful of hosts it's hard to beat.
example.org {
reverse_proxy 127.0.0.1:8080
}
notes / docker
Don't let container logs eat your disk
The default json-file driver has no size limit. Two lines in daemon.json save a lot of 3 a.m. surprises.