mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 22:37:29 +00:00
baudolo 3.2.1 can capture every volume from one atomic filesystem snapshot, which removes both the container stops and the torn copy a live rsync of a database produces. It states the snapshot kind rather than probing it, so naming a kind the host cannot deliver costs a whole backup run. Deciding that at deploy time is not possible: the set of docker volumes changes between deploys, and a volume created afterwards would sit in the snapshot as an empty directory, so the copy would succeed while holding nothing. The decision therefore moves into the run itself. ExecStart now points at baudolo-snapshot, which probes the host, appends --snapshot/--snapshot-subject when a snapshot will be faithful, and becomes the baudolo process either way. STORAGE_BACKUP_SNAPSHOT_MODE ships as `never`, so no host changes behaviour until an operator opts in - baudolo's snapshot path has never been driven end to end on a real deployment. `auto` probes and degrades to today's live two-pass copy with the reason in the journal; a stated `btrfs`/`zfs` skips only the fstype lookup and fails the unit when the host cannot deliver, which is the point of stating it. The token is `never` rather than `off` because YAML 1.1 reads a bare off/no/false as a boolean, which would render `--mode False` and kill the unit on every timer fire; falsey spellings are normalised and a deploy-time assert rejects anything the launcher's choices would not accept. The probe refuses unless the data root is a btrfs subvolume root whose parent is writable and on the same filesystem with no nested subvolume below it, and unless every docker volume uses the local driver, declares no Options of its own, sits under the data root and has nothing mounted inside. The volume rules read the declaration rather than the mount table, because docker mounts an NFS-backed volume lazily and unmounts it when the last container stops - such a volume is a separate filesystem that a snapshot of the data root captures as an empty directory. `auto` accepts btrfs only; zfs needs to be stated, since none of its premises could be exercised here. Before taking a snapshot the launcher removes the `.baudolo-*` leftovers a killed run leaves beside the data root: baudolo removes its snapshot in a finally, which a SIGKILL or a reboot skips, and a read-only snapshot of the data root pins every block the live root later frees. --hard-restart-projects is stripped when the snapshot flags are appended: it exists for stacks whose database cannot be backed up hot, which is what a snapshot removes. The pin moves 3.1.3 -> 3.2.1. That version is not on PyPI yet; publish it before deploying, or the pip task fails on every host. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Tests 🧪
All automated tests for Infinito.Nexus live here.
| Directory | Type | Guide |
|---|---|---|
unit/ |
Unit tests (isolated, no I/O) | unit.md |
integration/ |
Integration tests (real component boundaries) | integration.md |
external/ |
Opt-in live third-party checks, excluded from make test |
external.md |
e2e/ |
End-to-end Playwright tests | playwright.md |
regression/ |
Regression guard rules | regression.md |
lint/ |
Structural lint checks | lint.md |
Run each suite via the make targets documented in the linked guides.