Add uptime-kuma push url for restic #203
No reviewers
Labels
No labels
Blocked
Existing Service
Infrastructure Issue
Refactor
Security Hardening
Security Issue
Service Idea
Service Removal
Upgrade service
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: data.coop/ansible#203
Loading…
Reference in a new issue
No description provided.
Delete branch "restic-uptime-kuma"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I set up a push monitor in our uptime kuma and created a script for restic that calls the push monitor url on successful backup. I already deployed it.
We can add a
?ping=XYZ
parameter to the URL with the time it took to run the backup. Resticker hasPRE_COMMANDS
environment variable with commands to run before backup. ThePRE_COMMANDS
andPOST_COMMANDS_*
are run using eval (I know, right?!). So we can set upPRE_COMMANDS: "export RESTIC_UPTIME_KUMA_START=date +%d"
and then insuccess.sh
do calculations on how long it took to do the backup.Probably we want to separate the url from the uptime kuma token in the ansible vault
I merged this as I already deployed it. There is definitely room for improvement, but we can defer that to another PR.