-
Notifications
You must be signed in to change notification settings - Fork 1
Pushover Notifications
Pushover notifications are extremely handy because they land directly to your mobile phone. For mission critical things like backups, mobile phone notifications are my preferred notification method.
First we need to register or login at pushover.net. We need to register a new application and get the API Token/Key. Then we enable pushover and add your user key and your api token/key to the config.yml
:
[...]
threshold: 10
[...]
:notifications_pushover: true
:pushover:
:key: <user_key>
:token: <api_token_key>
The threshold
is the amount below which you need to be notified. Now we can setup argosnap
to run on a cron job:
30 20 * * * argosnap -n notify
This entry means that argosnap
will run every day at 20:30 o'clock. Every time argosnap runs, compares the threshold
with our tarsnap balance. If current balance falls below the threshold, a pushover notification is sent.
There are many guides online about how to use cron.