A green checkmark tells you a backup job exited cleanly. It doesn’t tell you the backup exists, is recent, or can be restored. Those are three different questions, and I only started asking them on a schedule last month.

I’m a lawyer, and client files are the one thing I can’t lose. I’m not going to cite you a rule here; you know your own jurisdiction’s duties better than I know them. But the common-sense version of the duty to safeguard client data surely includes knowing whether your safeguards work. “The job didn’t complain” is a weak answer to “how do you know?”

The setup I thought was fine

My practice runs on a small homelab. A few Proxmox nodes host most of the services. Three backup streams matter:

  • Proxmox Backup Server (PBS) takes a nightly backup of every guest (the containers and virtual machines).
  • ZFS replication with Sanoid and Syncoid copies datasets to a separate machine. Sanoid handles snapshots and retention; Syncoid ships them.
  • A DNS export from my Technitium server lands in a folder nightly.

Each one had been “working” for months, in the sense that nothing had paged me. But I’d never written down what working meant for each stream. And nothing was checking.

What bit me first: a zero exit status isn’t a backup

Before building anything, I’d already learned this one while poking at the replication target. One of my replication timers fires hourly. Looking at the logs, I found the hourly runs were succeeding — by skipping. A small script rate-limits transfers to once per 23 hours, so most hourly runs are successful no-ops.

That’s fine, as design goes. But it means “the hourly timer succeeded” and “I have an hourly backup” are not the same statement. The newest snapshot on the receiving side was hours old, which was exactly what the design said it should be. I only knew that because I looked at the snapshots instead of the exit code.

So the lesson: check the artifact, not the process. Did a new snapshot arrive? How old is it?

The sitrep

So I built a daily report. I call it a sitrep, because I like the military shorthand for “just tell me what’s going on.” It’s a stdlib-only Python collector that runs on my workstation at noon, connects to each host over SSH, and runs a probe that is strictly read-only. It doesn’t update packages, restart anything, or prune anything. It looks.

The design lives in one small config file: which hosts exist, what the thresholds are, and what each backup stream is supposed to do. The report compares reality to that file. Change the design, change the file — not the code.

The checks for backups are the point of the exercise:

  • Does every guest have a PBS backup from the last night’s job?
  • Did every replicated dataset arrive on the receiving machine within the last day?
  • Does the DNS export match its checksum, and does the archive pass an integrity test?
  • Are the storage pools healthy, when did they last scrub, and do the drives pass their SMART self-assessments?

Here’s the flavor of what the probe does, using generic names:

# newest snapshot on the receiving side, by creation time
zfs list -t snapshot -o name,creation -s creation -r backuppool/received | tail -n 5

# did the replication service succeed -- and what did it actually do?
journalctl -u zfs-replicate.service -n 20 --no-pager

# is the export intact?
sha256sum -c export.sha256 && unzip -tq export.zip

The first command is the one that matters. It reads the snapshot list directly, which is the evidence. The second shows what the job claims. The third checks the file rather than assuming it.

The first report

The first run came back mostly green. All 17 guests had a backup from that night. All 11 replicated datasets had arrived within a day. The DNS export matched its checksum. Pools were online, scrubs were recent, and the drives passed.

Then the findings:

The PBS copy was unverified, and it was the only copy. PBS had no verify job and no sync job. Zero of 17 latest snapshots had been verified. Every guest backup existed in exactly one place, on a consumer drive that already carries a flagged SMART attribute I’d been watching. The backups ran. They just weren’t checked, and they weren’t copied anywhere else.

One disk wasn’t covered by any backup stream. A 475 GB non-ZFS disk on one node, used by a couple of containers, fell outside every job. (A few tiny staging directories were in the same boat.) Nothing flagged it.

No restore drill had ever been recorded. Not for any stream. I had backups; I had never proven a restore.

None of these showed up as an error anywhere. Each was a gap between what I believed and what was true. That’s the useful thing about checking against a written design: it finds the holes the alarms can’t, because the alarms only fire on things you thought to alarm on.