borgmatic supports e.g. healthchecks, see https://torsion.org/borgmatic/docs/how-to/monitor-your-backups/ I tried to archive something similar with pre/post_hooks in runrestic and curl, but had no luck as I was unable to get the errorcode.