Skip to content

Commit

Permalink
Net/Restic: Send logs to Healthchecks.io
Browse files Browse the repository at this point in the history
  • Loading branch information
baltpeter committed Sep 18, 2021
1 parent e10c5a8 commit 5f28489
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions content/network/restic.md
Expand Up @@ -68,9 +68,7 @@ And the cleanup script: `~/housekeeping-restic-b2.sh`

Create two new checks on [healthchecks.io](https://healthchecks.io/). Then, add the following lines to the crontab using `crontab -e` but set different times:

```sh
30 5 * * * m=$(/root/backup-restic-b2.sh 2>&1) ; curl -fsS -m 30 --retry 5 --data-raw "$m" https://hc-ping.com/<healthcheck_ID_1>/$?
00 8 * * 2 m=$(/root/housekeeping-restic-b2.sh 2>&1) ; curl -fsS -m 30 --retry 5 --data-raw "$m" https://hc-ping.com/<healthcheck_ID_2>/$?
```
30 5 * * * /root/backup-restic-b2.sh && curl -fsS --retry 3 <healthcheck URL 1>
00 8 * * 2 /root/housekeeping-restic-b2.sh && curl -fsS --retry 3 <healthcheck URL 2>
```

TODO: Reports via email

0 comments on commit 5f28489

Please sign in to comment.