Fix borgmatic PostgreSQL backup and update backup sources #21

Merged
eblume merged 5 commits from feature/improve-borgmatic-backups into main 2026-01-17 09:22:02 -08:00

5 commits

Author SHA1 Message Date
f1bcfa8471 Add per-source backup size breakdown to dashboard
- Update borgmatic-metrics script to collect size per source directory
- Add horizontal bar gauge panel showing backup size by source
- Sources: Pictures, Documents, devpi, Zettelkasten, Forgejo, Loki, PostgreSQL

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 09:18:14 -08:00
ff557b0437 Add borgmatic metrics collection and Grafana dashboard
- New borgmatic_metrics ansible role:
  - Collects borg repository and archive stats hourly
  - Exports to Prometheus via textfile collector
  - Metrics: repo size, dedup ratio, archive count, last backup stats

- New Grafana dashboard "Borgmatic Backups":
  - Repository status and disk usage
  - Backup size trends over time
  - New data per backup (bar chart)
  - Deduplication ratio
  - Time since last backup with alerting thresholds

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 09:06:11 -08:00
27b113a97f Fix pg_dump_command placement in borgmatic config
pg_dump_command must be nested under each database entry, not at the
top level.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 08:52:42 -08:00
d517cd3ec4 Add rule to wait for user review before deploying
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 08:50:34 -08:00
912f2e3a82 Fix borgmatic PostgreSQL backup and update backup sources
- Add explicit pg_dump_command path to fix "pg_dump: command not found"
  error when running via LaunchAgent (no homebrew in PATH)
- Remove kiwix-tools from backups (was just symlinks, ZIM archives are
  re-downloadable via torrent)
- Enable Loki log backup by removing from exclude_patterns

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 08:48:16 -08:00