Ansible_workstation/vars/backup.yml

27 lines
1.0 KiB
YAML
Raw Normal View History

---
nfs_shares:
- mount_point: /mnt/Benjamin
server: nas.lan
export: /mnt/DocNas/Benjamin
options: "defaults,_netdev,rsize=8192,wsize=8192"
- mount_point: /mnt/Margot
server: nas.lan
export: /mnt/DocNas/Margot
options: "defaults,_netdev,rsize=8192,wsize=8192"
- mount_point: /mnt/Commun
server: nas.lan
export: /mnt/DocNas/Commun
options: defaults,_netdev,rsize=8192,wsize=8192
2022-04-02 06:14:33 +00:00
borgmatic_name: on_start
borg_source_directories: "{{ nfs_shares | map(attribute='mount_point') }}"
borg_repository: /backup/borgmatic
2022-04-02 06:14:33 +00:00
borgmatic_hooks:
on_error:
2023-03-22 05:15:09 +00:00
- "curl -X POST -d '{\"body\": \"Erreur dans le backup\"}' -H \"Content-Type: application/json\" http://apprise.nas.lan/notify/backup"
2022-04-02 06:14:33 +00:00
before_backup:
2023-03-22 05:15:09 +00:00
- "curl -X POST -d '{\"body\": \"Starting Backup\"}' -H \"Content-Type: application/json\" http://apprise.nas.lan/notify/backup"
2022-04-02 06:14:33 +00:00
after_backup:
- "curl -X POST -d '{\"body\": \"Finished Backup\"}' -H \"Content-Type: application/json\" http://apprise.nas.lan/notify/backup"
2022-04-02 06:14:33 +00:00
- poweroff