use fqdn
This commit is contained in:
parent
8586e7b7a1
commit
eb7b20ebbc
@ -27,3 +27,10 @@
|
|||||||
borgmatic_hooks:
|
borgmatic_hooks:
|
||||||
after_backup:
|
after_backup:
|
||||||
- "curl -d '{{ inventory_hostname }}' {{ backup_topic }}"
|
- "curl -d '{{ inventory_hostname }}' {{ backup_topic }}"
|
||||||
|
|
||||||
|
- name: set archive format to use fqdn
|
||||||
|
ansible.builtin.replace:
|
||||||
|
path: /etc/borgmatic/config.yaml
|
||||||
|
regexp: 'archive_name_format:.*$'
|
||||||
|
replace: "archive_name_format: '{fqdn}-{now:%Y-%m-%d-%H%M%S}'"
|
||||||
|
backup: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user