Skip to content

Commit

Permalink
monitor backup cron with uptime kuma
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneJeon committed Jan 21, 2025
1 parent 45fb2d4 commit 7fb390f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions services/backup/docker-compose.restic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ services:
wait-for redis:6379 --timeout=60 -- docker exec redis dump
wait-for mysql:3306 --timeout=60 -- docker exec mysql dump
docker exec uptime-kuma sh -c 'rm -f data/*.db.bak*'
# Too noisy... reconsider if I get a 'noise' inbox
#POST_COMMANDS_SUCCESS: 'curl -X POST -H ''Content-type: application/json'' --data ''{"text": "Backup ran successfully!"}'' ${SLACK_NOTIFICATIONS_ENDPOINT}'
POST_COMMANDS_FAILURE: 'curl -X POST -H ''Content-type: application/json'' --data ''{"text": "Backup failed!"}'' ${SLACK_ALERTS_ENDPOINT}'
POST_COMMANDS_SUCCESS: 'curl -X POST https://up.${BASE_HOST}/api/push/vdP9McS4Pm?status=up&msg=OK&ping='
POST_COMMANDS_FAILURE: 'curl -X POST -d "text=backup failed" http://apprise:8000/notify/alerts'

prune:
image: mazzolino/restic:1.7.2
Expand Down

0 comments on commit 7fb390f

Please sign in to comment.