borgmatic

🚨 Monitoring

πŸ”

borgmatic integrates with third-party monitoring services and libraries, pinging them as backups happen. The idea is that you'll receive an alert when something goes wrong or when the service doesn't hear from borgmatic for a configured interval (if supported). While these services and libraries offer different features, you probably only need to use one of them at most. See their documentation for configuration information:

Per-repository monitoring

New in version 2.2.1 By default, you configure a monitoring integration at the top level of your configuration. borgmatic then pings it once before the actions for all of your repositories begin and once after they have all finished or failed. With multiple repositories, a single monitoring check represents the whole run.

If you'd rather have separate monitoring for each repository, put the integration's options under that repository instead:

repositories:
    - path: ssh://user@one.example.org/./repo.borg
      label: one
      healthchecks:
          ping_url: https://hc-ping.com/uuid-for-one

    - path: ssh://user@two.example.org/./repo.borg
      label: two
      healthchecks:
          ping_url: https://hc-ping.com/uuid-for-two

This works for all of the monitoring integrations listed above. Specify each integration's complete configuration under the repository.

With this configuration, borgmatic pings each repository's monitoring endpoint independently: a start ping before it processes that repository and a finish or fail ping afterward. If one repository fails, only its own check reports the failure, and borgmatic continues with the remaining repositories.

A few things to keep in mind:

Improve this documentation

Have an idea on how to make this documentation even better? Use our issue tracker to send your feedback!