2021-03-11 23:29:57 +01:00
|
|
|
---
|
|
|
|
{{ ansible_managed | comment }}
|
|
|
|
|
|
|
|
location:
|
2021-03-14 18:24:36 +01:00
|
|
|
source_directories:
|
|
|
|
{% for source in borg_backup_directories %}
|
|
|
|
- {{ source }}
|
2021-03-14 19:21:15 +01:00
|
|
|
{% endfor %}
|
|
|
|
exclude_patterns:
|
|
|
|
{% for exclude in borg_backup_exclude %}
|
|
|
|
- {{ exclude }}
|
2021-03-14 18:24:36 +01:00
|
|
|
{% endfor %}
|
2021-03-11 23:29:57 +01:00
|
|
|
repositories:
|
|
|
|
- {{ borg_server_user }}@{{ borg_server_host }}:{{ borg_host_dir }}
|
|
|
|
|
2021-03-12 01:46:35 +01:00
|
|
|
storage:
|
|
|
|
encryption_passphrase: "{{ borg_encryption_passphrase }}"
|
2021-03-14 19:07:02 +01:00
|
|
|
ssh_command: ssh -i /etc/borgmatic/id_remote
|
2021-03-12 01:46:35 +01:00
|
|
|
# compression: 'lz4'
|
|
|
|
# umask: 0077
|
|
|
|
# lock_wait: 5
|
|
|
|
# archive_name_format: '{hostname}-{now}'
|
|
|
|
|
|
|
|
|
2021-03-11 23:29:57 +01:00
|
|
|
retention:
|
2021-03-14 18:24:36 +01:00
|
|
|
keep_daily: {{ borg_keep_daily }}
|
|
|
|
keep_weekly: {{ borg_keep_weekly }}
|
|
|
|
keep_monthly: {{ borg_keep_monthly }}
|
2021-03-11 23:29:57 +01:00
|
|
|
|
|
|
|
consistency:
|
|
|
|
checks:
|
|
|
|
- repository
|
|
|
|
- archives
|
|
|
|
|
|
|
|
{% if postgresql_databases is defined %}
|
|
|
|
hooks:
|
|
|
|
postgresql_databases:
|
|
|
|
- name: all
|
|
|
|
{% endif %}
|
|
|
|
...
|