Backup-Heartbeat: boka infrastructure backup monitoren #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Kontext
Seit 2026-08-22 läuft auf boka ein tägliches rclone-Backup der Infrastruktur-Daten nach Backblaze B2 (Bucket
boka-infrastructure, root cron, Log/var/log/boka-backup.log). Details: froxxxy/server Issue #9 +docs/BACKUP.md.Fehlerfall meldet das Skript selbst per ntfy. Was fehlt: der Dead-Man-Check — wenn der Cron still stirbt (rclone kaputt, B2-Key abgelaufen, Disk voll), merkt es niemand.
Aufgabe
monitor.phperweitert um einen Heartbeat-Check:push-status.shsendet im Payload zusätzlich:backup_last_run(mtime von/var/log/boka-backup.logoder Timestamp der letzten "Backup complete"-Zeile) undbackup_status(ok/fail)backup_last_runälter als 26h → Warnmail/monitor/:backup: last run X h ago · okHinweise
~/server/scripts/push-status.shauf boka) — API-Änderung am Ingest zuerst hier rückwärtskompatibel akzeptieren/monitor/bleibt noindex, aber trotzdem nur Status, keine Details