From a9cb1bdca9cec5c9862a996b43b69cab5c3fbeb9 Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Mon, 16 Dec 2024 17:09:34 +0100 Subject: [PATCH] update include / exclude vars name for better understanding --- templates/brain_backup.j2 | 2 +- templates/pxarexclude.j2 | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/brain_backup.j2 b/templates/brain_backup.j2 index a41d74f..68c4d1f 100644 --- a/templates/brain_backup.j2 +++ b/templates/brain_backup.j2 @@ -85,7 +85,7 @@ find $backup_dir -type d -ctime +$backup_retention -exec rm -rf {} \; ## send to PBS ## /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 %} {% endfor %} {% if backup_pgsql_enabled %} diff --git a/templates/pxarexclude.j2 b/templates/pxarexclude.j2 index 459d72b..ee000a4 100644 --- a/templates/pxarexclude.j2 +++ b/templates/pxarexclude.j2 @@ -1,7 +1,7 @@ /* -{% for item in backup_path %} -{% if item.exclude }}{{ item.exclude }}{% endif %} +{% for item in backup_path_exclude %} +{{ item.value }} {% endfor %} -{% for item in backup_path %} -!{{ item.value }} +{% for item in backup_path_include %} +!{{ item.path }} {% endfor %}