Skip to content

1.2.4

Choose a tag to compare

@cfoellmann cfoellmann released this 26 Aug 11:25
· 2 commits to master since this release

Added

  • Configuration errors now send a notification card through NOTIFY_WEBHOOK_URL before the container exits. The fail-fast checks added in 1.2.3 were diagnosable but silent — notify_teams was only reachable from a backup run, so a mistyped TOKEN was only found by someone looking at the container.
  • The smoke test runs a real HTTP receiver and asserts that both a configuration error and a failed run post a card. Now 15 checks.

Changed

  • Behaviour change: an unusable configuration exits 78 (EX_CONFIG) instead of 1, so monitoring can tell "misconfigured" from "crashed" without parsing logs. Exit codes are documented in the README.
  • TIME_ZONE is validated and applied before the other checks, so every notification carries local time.

Fixed

  • Important: the webhook call is backgrounded and waited on, like the daily sleep. A POSIX trap only runs once the foreground command returns, so a SIGTERM arriving mid-notification used to sit out the stop grace and end in SIGKILL. Measured against an unreachable webhook under the default 10s grace: exit 137 before, exit 143 within a second after.
  • An INT/TERM trap is installed before anything can block, and the notification attempt is bounded (10s for configuration errors, 60s for run notifications).
  • The token file is written with printf rather than echo.
  • ci/smoke-test.sh no longer reports success when a container fails to complete a cycle within the timeout.

Images

ghcr.io/wus-technik/github-backup-docker:1.2.4 — also published as :stable (linux/amd64, linux/arm/v7, linux/arm64).