Skip to content

Healthchecks integration #179

@Zottelchen

Description

@Zottelchen

Hi,
I have a feature request: An Integration of Healthchecks. There is a hosted version, but it can also be selfhosted. It should do the following things:

  1. Webhook when starting a location
  2. Webhook when finishing a location, including status (or success/fail) as well as a (truncated?) log.

Suggested config:

locations:
  my-location-name:
    from: path/to/backup
    to: name-of-backend
    healthcheck: <uuid> (assume hc-ping.com) OR <url> (for selfhosting)

For comparison, here is a shell script I currently use:

HEALTHPING="https://hc-ping.com/<uuid>"
curl -fsS -m 10 --retry 5 -o /dev/null ${HEALTHPING}/start
LOG=$(restic [or other programs] 2>&1)
curl -fsS -m 10 --retry 5 --data-raw "$LOG" -o /dev/null ${HEALTHPING}/$?

The benefit of having that directly integrated here is that it is one thing less to break. Or in a Windows case, one thing less to properly install [curl] as well as not having to fight with shitty Windows batch syntax just to set up a backup for my moms pictures (especially once #68 is merged).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions