template brain_backup - update condition - need some jinja lessons

This commit is contained in:
Ludovic Cartier 2024-12-24 11:55:55 +01:00
parent 43c81ba4d7
commit b56d2aa80c

View File

@ -86,7 +86,7 @@ find $backup_dir -type d -ctime +$backup_local_retention -exec rm -rf {} \;
/usr/bin/proxmox-backup-client backup slash.pxar:/ \ /usr/bin/proxmox-backup-client backup slash.pxar:/ \
{% if backup_path_include is defined %} {% if backup_path_include is defined %}
{% for item in backup_path_include %} {% for item in backup_path_include %}
{% if item.fs_mount %}--include-dev {{ item.path }} \{% endif %} {% if item.fs_mount is defined %}--include-dev {{ item.path }} \{% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if backup_pgsql_enabled is sameas true %} {% if backup_pgsql_enabled is sameas true %}