Feat(backup): send message to apprise
This commit is contained in:
parent
44a0900265
commit
16bd8f0afe
@ -18,10 +18,9 @@ borg_source_directories: "{{ nfs_shares | map(attribute='mount_point') }}"
|
|||||||
borg_repository: /backup/borgmatic
|
borg_repository: /backup/borgmatic
|
||||||
borgmatic_hooks:
|
borgmatic_hooks:
|
||||||
on_error:
|
on_error:
|
||||||
- echo "`date` - Error while creating a backup."
|
- "curl -X POST -d '{\"body\": \"Erreur dans le backup\"}' -H \"Content-Type: application/json\" http://apprise.nas.lan/notify/backup"
|
||||||
before_backup:
|
before_backup:
|
||||||
- echo "`date` - Starting backup."
|
- "curl -X POST -d '{\"body\": \"Starting Backup\"}' -H \"Content-Type: application/json\" http://apprise.nas.lan/notify/backup"
|
||||||
after_backup:
|
after_backup:
|
||||||
- echo "`date` - Finished backup."
|
|
||||||
- "curl -X POST -d '{\"body\": \"Finished Backup\"}' -H \"Content-Type: application/json\" http://apprise.nas.lan/notify/backup"
|
- "curl -X POST -d '{\"body\": \"Finished Backup\"}' -H \"Content-Type: application/json\" http://apprise.nas.lan/notify/backup"
|
||||||
- poweroff
|
- poweroff
|
||||||
|
Loading…
Reference in New Issue
Block a user