mirror of
https://github.com/borgbase/ansible-role-borgbackup.git
synced 2025-08-30 13:46:48 +02:00
Fix legacy config
This commit is contained in:
parent
5d0d42d2d2
commit
31fdbfb89a
@ -3,7 +3,6 @@
|
||||
# Managed by Ansible, please don't edit manually
|
||||
|
||||
# Full config: https://torsion.org/borgmatic/docs/reference/config.yaml
|
||||
location:
|
||||
{% if borg_source_directories is not defined or borg_source_directories | length == 0 %}
|
||||
source_directories:
|
||||
- /etc/hostname # prevent empty backupconfig
|
||||
@ -65,7 +64,6 @@ location:
|
||||
# https://borgbackup.readthedocs.io/en/stable/usage.html#borg-create and
|
||||
# https://borgbackup.readthedocs.io/en/stable/usage/general.html#environment-variables for
|
||||
# details.
|
||||
storage:
|
||||
{% if borg_encryption_passphrase %}
|
||||
encryption_passphrase: {{ borg_encryption_passphrase }}
|
||||
|
||||
@ -115,7 +113,6 @@ storage:
|
||||
# Retention policy for how many backups to keep in each category. See
|
||||
# https://borgbackup.readthedocs.org/en/stable/usage.html#borg-prune for details.
|
||||
# At least one of the "keep" options is required for pruning to work.
|
||||
retention:
|
||||
{% if borg_retention_policy.keep_secondly is defined %}
|
||||
# Number of secondly archives to keep.
|
||||
keep_secondly: {{ borg_retention_policy.keep_secondly }}
|
||||
@ -154,7 +151,7 @@ retention:
|
||||
# Consistency checks to run after backups. See
|
||||
# https://borgbackup.readthedocs.org/en/stable/usage.html#borg-check and
|
||||
# https://borgbackup.readthedocs.org/en/stable/usage.html#borg-extract for details.
|
||||
consistency:
|
||||
|
||||
# List of one or more consistency checks to run: "repository",
|
||||
# "archives", "data", and/or "extract". Defaults to
|
||||
# "repository" and "archives". Set to "disabled" to disable
|
||||
@ -175,8 +172,7 @@ consistency:
|
||||
# IMPORTANT: All provided commands and scripts are executed with user permissions of borgmatic.
|
||||
# Do not forget to set secure permissions on this file as well as on any script listed (chmod 0700) to
|
||||
# prevent potential shell injection or privilege escalation.
|
||||
hooks:
|
||||
{% for hook in borgmatic_hooks %}
|
||||
{{ hook }}:
|
||||
{{ borgmatic_hooks[hook] | to_nice_yaml(indent=4) | indent(8, first=true) }}
|
||||
{{ borgmatic_hooks[hook] | to_nice_yaml(indent=4) }}
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user