Post

Staging Cleanuparr QNAP config claim for backup migration

Staging Cleanuparr QNAP config claim for backup migration

The most recent main push adds a QNAP config‑claim resource to the Cleanuparr application, documenting how configuration and data‑protection keys are staged before a cutover. The change touches the README and the architecture wiki, making the migration path explicit for future GitOps syncs.

Updated README for clusters/homelab/apps/cleanuparr/README.md

The README now includes a section that describes the empty cleanuparr-config-qnap claim, which stages configuration and data‑protection keys on the QNAP side. It records that Cleanuparr 2.11.3 converted all three SQLite databases from the Dec 1 QNAP backup in isolation, that per‑table row counts matched across 44 tables and 13 854 rows, and that PostgreSQL heap and index checks passed. The entry also notes that a second import refuses a populated target and that the SQLite driver creates WAL sidecars even with a stopped source.

Architecture wiki entry openwiki/architecture/storage-and-state.md

The wiki page was extended to explain the staged cutover intent. It states that the config claim is source intent, that a rehearsal with the deployed Cleanuparr and PostgreSQL image digests matched per‑table row counts across all three databases, and that the app and its backup jobs still use the local claim. The entry lists the requirements for the cutover: a writable scratch copy of the final stopped‑writer SQLite snapshot, a dedicated PostgreSQL database on QNAP, and private config‑file permissions under QNAP guest mapping.

Verification and next steps

After applying the GitOps change, run terraform plan (or the equivalent GitOps sync) to confirm the new valueFiles or claim resources appear without error. Then watch the Cleanuparr pod and backup jobs: they should pick up the staged QNAP claim and proceed with the migration path described in the docs. If the pod restarts or reports missing secrets, re‑run the sync after ensuring the QNAP guest‑mapping permissions are correct.

This post is licensed under CC BY 4.0 by the author.