fix config yaml formatting

This commit is contained in:
Alik Kurdyukov 2025-06-17 13:50:53 +04:00
parent 61470c98ac
commit c7ef79ad3f
2 changed files with 4 additions and 2 deletions

View File

@ -42,6 +42,8 @@ borgmatic_commands:
run:
- echo "Something went wrong!"
borgmatic_databases: []
borgmatic_checks:
- name: repository
frequency: "4 weeks"

View File

@ -177,13 +177,13 @@ check_last: {{ borgmatic_check_last }}
# 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.
commands:
{{ borgmatic_commands | to_nice_yaml(indent=4) | indent(4, first=False) }}
{{ borgmatic_commands | to_nice_yaml(indent=4) }}
{% endif %}
{% if borgmatic_databases is defined %}
# Databases specific backup
{% for database in borgmatic_databases %}
{{ database }}_databases:
{{ borgmatic_databases[database] | to_nice_yaml(indent=4) | indent(4, first=true) }}
{{ borgmatic_databases[database] | to_nice_yaml(indent=4) }}
{% endfor %}
{% endif %}