Commit Graph
4 Commits
Author SHA1 Message Date
ginnoirandClaude Opus 5.5 e0240d8e10 fix(backup): make backup_scheduler actually run; add freshness alerting
busybox crond reads <dir>/<user>, but the crontab was mounted at
/etc/crontab, so no cron job had ever run: SQL dumps were last taken
2026-06-17 and the ntfy failure alerts never fired. Kopia's own server
schedule kept file snapshots going until its cache broke on 2026-08-28,
and nothing noticed for seven weeks.

- mount crontab at /etc/crontabs/root and run crond -c /etc/crontabs
- add hourly backup-check-freshness.sh: every Kopia source and the
  newest SQL dump must be <26h old and dumps must not be empty stubs;
  pushes UP/DOWN to the Uptime Kuma push monitor "Backups fresh" (#73),
  which also alerts via ntfy if no push arrives for 2h
- scheduler joins edge to reach uptime_kuma; jq added; KOPIA password
  and KUMA_PUSH_URL exported to /etc/backup.env for cron's bare env
- drop backup-run-snapshots.sh from cron (would duplicate the kopia
  server's 03:00 policy snapshots); keep it for manual runs
- bookstack dump used an unset MYSQL_PASSWORD (empty 20-byte gzip);
  dump_mariadb now takes the password env var name
- add immich-postgres and nextcloud-postgres dumps

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 03:13:35 -05:00
ginnoir bb18e0e338 Mount backup scripts from /config/backup on host.
Portainer CE git stacks cannot bind-mount relative repo paths; sync auxiliary files to the host path documented in README.
2026-06-10 21:28:56 -05:00
ginnoir f660bc9c4b Fix backup stack env for Portainer git deploy.
Remove compose ${VAR} overrides that blanked stack.env values and map KOPIA_REPOSITORY_PASSWORD in init-kopia; use hostname-only B2 endpoint.
2026-06-10 21:26:02 -05:00
ginnoir 7c7f6dfebc Add Kopia backup stack with Backblaze B2 offsite target.
Protects /config, selective labdata, and nightly DB dumps; documents homelab improvement plan briefs.
2026-06-10 21:21:34 -05:00