A Tiny Go CLI to Rotate and Compress Logs

Let me be clear up front: logrotate exists, it is installed on every system I own, and it works. This project was an excuse to write some Go on a Sunday and end up with a tool shaped exactly like my lab. It rotates log files for the handful of services I run from plain binaries instead of containers: when a log passes a size threshold, it gets renamed with a timestamp, gzipped, and anything older than the retention limit is deleted. ...

August 9, 2026 · 2 min · Tom Becker

ZFS Snapshots, Explained to Myself

Every few months I catch myself saying “the data is safe, we have snapshots,” and every few months I have to remind myself that this sentence is only half true. This post is the reminder, written down so future me can just read it. What a snapshot is A ZFS snapshot is a frozen, read-only view of a filesystem at a moment in time. It costs almost nothing to create because it doesn’t copy data - it just stops the old blocks from being freed when files change. ...

May 17, 2026 · 2 min · Tom Becker

My Backup Routine with restic and a USB Drive Rotation

Everyone has a backup plan until the first drive dies. Mine died in October the NAS started logging read errors on a Sunday evening, and by Monday the second drive in the mirror was answering questions nobody should ask a hard drive. The data survived because of the routine below, so I am writing it down while I still feel grateful for it. The shape of it The rule is the old one: three copies, two different media, one offsite. ...

November 2, 2025 · 2 min · Tom Becker