Feat: add collectd to backup
This commit is contained in:
parent
2cc400da7a
commit
e7afe1e8d2
4
home.yml
4
home.yml
@ -14,3 +14,7 @@
|
||||
include_role:
|
||||
name: borgmatic
|
||||
|
||||
|
||||
- name: Set up collectd
|
||||
include_role:
|
||||
name: collectd
|
||||
|
@ -12,10 +12,24 @@ nfs_shares:
|
||||
server: nas.lan
|
||||
export: /mnt/DocNas/Commun
|
||||
options: defaults,_netdev,rsize=8192,wsize=8192
|
||||
- mount_point: /mnt/jails
|
||||
server: nas.lan
|
||||
export: /mnt/DocNas/iocage/jails
|
||||
options: defaults,_netdev,rsize=8192,wsize=8192
|
||||
|
||||
|
||||
borgmatic_name: on_start
|
||||
borg_source_directories: "{{ nfs_shares | map(attribute='mount_point') }}"
|
||||
borg_repository: /backup/borgmatic
|
||||
borgmatic_hooks:
|
||||
on_error:
|
||||
- echo "`date` - Error while creating a backup."
|
||||
before_backup:
|
||||
- echo "`date` - Starting backup."
|
||||
after_backup:
|
||||
- echo "`date` - Finished backup."
|
||||
- poweroff
|
||||
|
||||
|
||||
|
||||
collectd_network_server: 192.168.2.240
|
||||
collectd_network_port: 25826
|
||||
|
Loading…
Reference in New Issue
Block a user