blumeops/ansible/roles/borgmatic/templates
Erich Blume f26105dea9 C1: borgmatic shower SQLite dump via ssh to ringtail
The shower dump hook referenced kubectl --context=k3s-ringtail, but
indri's kubeconfig deliberately doesn't carry the ringtail
credentials. Since PR #349 (2026-05-11), nightly borgmatic runs have
failed at the before_backup hook, aborting both sifaka-borg-backups
and borgbase-offsite.

Rewrite the dump to ssh into ringtail and run k3s kubectl there.
/etc/rancher/k3s/k3s.yaml on ringtail is mode 644, so no sudo is
needed; the ssh user (eblume) reads it directly. Dump file is
created in the pod via sqlite3.backup, copied to ringtail's host
filesystem via k3s kubectl cp, then scp'd back to indri.

Template gains a `ssh_host` field on dump entries — when set, uses
the ssh path; when absent (as for mealie), uses local kubectl with
the existing `context` field.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 17:38:26 -07:00
..
borgmatic-photos.plist.j2 Fix borgmatic LaunchAgent TCC dialog hang by removing mise wrapper 2026-04-15 07:23:46 -07:00
borgmatic.plist.j2 Fix borgmatic LaunchAgent TCC dialog hang by removing mise wrapper 2026-04-15 07:23:46 -07:00
config.yaml.j2 C1: borgmatic shower SQLite dump via ssh to ringtail 2026-05-13 17:38:26 -07:00
k8s-sqlite-dump.sh.j2 C1: borgmatic shower SQLite dump via ssh to ringtail 2026-05-13 17:38:26 -07:00
photos.yaml.j2 Harden borgmatic photos backup: restrict dirs, add keepalives + checkpoints 2026-03-30 10:30:28 -07:00