Verify media PostgreSQL backups before publication
The latest push adds verification to the media PostgreSQL backup flow so each dump and its checksum are checked in a hidden staging directory before the archive is renamed to its final timestamp. A failed check leaves earlier archive sets intact, and the restore job re-verifies the selected archive before loading it. This reduces the chance of publishing incomplete or corrupted backups in the homelab.
Implementation: staging-directory verification for PostgreSQL backups
I modified openwiki/architecture/storage-and-state.md to describe how the backup CronJob connects to the media-postgres Service, writes dumps to a hidden staging directory, verifies checksums, and only then renames the set to its final timestamp. If verification fails, earlier archive sets remain untouched. A later successful backup prunes staging directories at least two full days old.
CI hook: offline-checks script updated
I added one line to scripts/ci/offline-checks.sh to support offline verification of backup artifacts. This is merged code, not a runtime result. I have not executed the script, so verification is pending; the next check is to run the hook locally and confirm it rejects corrupt checksums.
Platform engineering impact: verify before publish
The staging-then-publish pattern applies to any platform team managing database backups on Kubernetes. Teams can verify artifacts in a hidden directory, keep previous archives safe on failure, prune only after success, and re-verify before restore. A concrete situation is a PostgreSQL deployment behind an unreliable WAN link where partial dump files might otherwise be published as complete.