update include / exclude vars name for better understanding

This commit is contained in:
Ludovic Cartier 2024-12-16 17:09:34 +01:00
parent a0fb7ff4bb
commit a9cb1bdca9
2 changed files with 5 additions and 5 deletions

View File

@ -85,7 +85,7 @@ find $backup_dir -type d -ctime +$backup_retention -exec rm -rf {} \;
## send to PBS ## ## send to PBS ##
/usr/bin/proxmox-backup-client backup slash.pxar:/ \ /usr/bin/proxmox-backup-client backup slash.pxar:/ \
{% for item in backup_path %} {% for item in backup_path_include %}
{% if item.fs_mount }}--include-dev {{ item.path }} \{% endif %} {% if item.fs_mount }}--include-dev {{ item.path }} \{% endif %}
{% endfor %} {% endfor %}
{% if backup_pgsql_enabled %} {% if backup_pgsql_enabled %}

View File

@ -1,7 +1,7 @@
/* /*
{% for item in backup_path %} {% for item in backup_path_exclude %}
{% if item.exclude }}{{ item.exclude }}{% endif %} {{ item.value }}
{% endfor %} {% endfor %}
{% for item in backup_path %} {% for item in backup_path_include %}
!{{ item.value }} !{{ item.path }}
{% endfor %} {% endfor %}