re-add apprise alerts for backups
This commit is contained in:
parent
feb29ed0bf
commit
c9ebc76428
3 changed files with 6 additions and 3 deletions
|
@ -15,3 +15,6 @@ hooks:
|
||||||
- guestunmount /mnt/thecloud && sleep 1
|
- guestunmount /mnt/thecloud && sleep 1
|
||||||
- virsh blockcommit tf-thecloud vdb --active --verbose --pivot
|
- virsh blockcommit tf-thecloud vdb --active --verbose --pivot
|
||||||
- rm /kvm/snapshots/thecloud.qcow2
|
- rm /kvm/snapshots/thecloud.qcow2
|
||||||
|
- apprise --body="Backup succeeded" {{ apprise_url }} || true
|
||||||
|
on_error:
|
||||||
|
- apprise --body="Error while performing backup" {{ apprise_url }} || true
|
|
@ -19,8 +19,8 @@
|
||||||
name: apprise
|
name: apprise
|
||||||
|
|
||||||
- name: Copy Borgmatic script
|
- name: Copy Borgmatic script
|
||||||
copy:
|
template:
|
||||||
src: "{{ role_path }}/backup.yml"
|
src: "{{ role_path }}/backup.yml.j2"
|
||||||
dest: /root/backup.yml
|
dest: /root/backup.yml
|
||||||
|
|
||||||
- name: Copy systemd backup unit
|
- name: Copy systemd backup unit
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
apprise_url: 'apprise://192.168.30.9:3003/backups'
|
apprise_url: 'apprises://apprise.pim.kunis.nl:444/backups'
|
||||||
|
|
Reference in a new issue