2021-03-11 23:29:57 +01:00
|
|
|
---
|
|
|
|
{{ ansible_managed | comment }}
|
|
|
|
|
|
|
|
location:
|
|
|
|
source_directories: {{ borg_backup_directories | to_nice_yaml }}
|
|
|
|
repositories:
|
|
|
|
- {{ borg_server_user }}@{{ borg_server_host }}:{{ borg_host_dir }}
|
|
|
|
|
2021-03-12 01:46:35 +01:00
|
|
|
storage:
|
|
|
|
encryption_passphrase: "{{ borg_encryption_passphrase }}"
|
|
|
|
ssh_command: ssh -i /etc/borgbackup/id_remote
|
|
|
|
# compression: 'lz4'
|
|
|
|
# umask: 0077
|
|
|
|
# lock_wait: 5
|
|
|
|
# archive_name_format: '{hostname}-{now}'
|
|
|
|
|
|
|
|
|
2021-03-11 23:29:57 +01:00
|
|
|
retention:
|
|
|
|
keep_daily: "{{ borg_keep_daily }}"
|
|
|
|
keep_weekly: "{{ borg_keep_weekly }}"
|
2021-03-14 16:11:40 +01:00
|
|
|
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 %}
|
|
|
|
...
|