cosmetic config fixes

This commit is contained in:
Alik Kurdyukov 2025-06-17 12:16:45 +04:00
parent 60115dd0b7
commit 61470c98ac

View File

@ -171,17 +171,17 @@ checks:
# Restrict the number of checked archives to the last n. Applies only to the "archives" check. # Restrict the number of checked archives to the last n. Applies only to the "archives" check.
check_last: {{ borgmatic_check_last }} check_last: {{ borgmatic_check_last }}
{% if borgmatic_commands is defined %}
# Shell commands or scripts to execute before and after a backup or if an error has occurred. # Shell commands or scripts to execute before and after a backup or if an error has occurred.
# IMPORTANT: All provided commands and scripts are executed with user permissions of borgmatic. # 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 # 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. # prevent potential shell injection or privilege escalation.
{% if borgmatic_commands is defined %}
commands: commands:
{{ borgmatic_commands | to_nice_yaml(indent=4) | indent(4, first=true) }} {{ borgmatic_commands | to_nice_yaml(indent=4) | indent(4, first=False) }}
{% endif %} {% endif %}
# Databases specific backup
{% if borgmatic_databases is defined %} {% if borgmatic_databases is defined %}
# Databases specific backup
{% for database in borgmatic_databases %} {% for database in borgmatic_databases %}
{{ database }}_databases: {{ database }}_databases:
{{ borgmatic_databases[database] | to_nice_yaml(indent=4) | indent(4, first=true) }} {{ borgmatic_databases[database] | to_nice_yaml(indent=4) | indent(4, first=true) }}