feat(backup): domedog-side pull script for Forgejo+Vault #106
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/backup-pull-domedog"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
scripts/clawdie-backup-pull.sh— domedog-side pull of the Vultr Forgejo + Vaultwarden dumps, closing the HOST-MATRIX §4 backup-independence gap (that one Vultr box is a SPOF for both backups and all secrets).Zero new cost: domedog is already paid, on the tailnet, with 51 GB free (~1–2 GB/snapshot).
Design (the four tightenings from review)
--delete, no writes back).unzip -ttheforgejo dumpzip +PRAGMA integrity_checkthe vault SQLite before trusting it.age(the vault dump is secret material); the private key stays off domedog, so a domedog compromise can't decrypt it. Warns loudly + 0600 if age isn't configured.Plus: opt-in Colibri board status (transition a task
done/failed= backup health signal — the observability win from option (a)), single-runflock, and no hosts/keys in the repo (config lives in~/.config/clawdie-backup/backup.env, gitignored;.env.exampledocuments it).Vultr side (separate, its responsibility)
Produce consistent dumps and expose them read-only:
forgejo dump(repos + DB + config — a raw rsync of the data dir would risk an inconsistent SQLite copy and could miss an external DB = all issues/PRs) andsqlite3 … ".backup"for the vault DB + the rest of its data dir.Tests
bash -nclean. (shellcheck not installed in CI env.)Scope notes
.env) is a separate §4 item still open.TBDin the matrix).🤖 Generated with Claude Code