This commit is contained in:
Elizabeth Hunt 2024-07-17 01:01:03 -07:00
parent 8586e7b7a1
commit eb7b20ebbc
Signed by: simponic
GPG Key ID: 2909B9A7FF6213EE

View File

@ -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