Add configurable exclusions and backup run history

This commit is contained in:
howard committed 2026-11-01 10:53:04 +13:00
1 parent 64cfbeb90c
commit 2351cb6384
6 files changed
+62 -10

No files matched your search

+5 -5
View File
@@ -104,11 +104,11 @@ finish_run() {
else
if (( DRY_RUN )); then status="dry_run_failed"; else status="failed"; fi
fi
if is_true "$MQTT_REPORT_ENABLED"; then
"$SCRIPT_DIR/stages/99-mqtt-report.sh" "$status" "$exit_code" \
"$BACKUP_STARTED_EPOCH" "$finished" "$BACKUP_RUN_ID" "$BACKUP_RUN_LOG" \
|| log ERROR "Unable to publish final MQTT result"
fi
# Persist history even when MQTT reporting is disabled. The stage handles
# MQTT publication conditionally and keeps its own failures non-fatal here.
"$SCRIPT_DIR/stages/99-mqtt-report.sh" "$status" "$exit_code" \
"$BACKUP_STARTED_EPOCH" "$finished" "$BACKUP_RUN_ID" "$BACKUP_RUN_LOG" \
|| log ERROR "Unable to record final backup report"
rm -f -- "$BACKUP_RUN_LOG"
exit "$exit_code"
}