From 3c8658697447657384cb9e7434376b085b8c1bac Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Tue, 24 Dec 2024 09:51:24 +0100 Subject: [PATCH] template brain_backup - add condition for var backup_path_include --- templates/brain_backup.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/brain_backup.j2 b/templates/brain_backup.j2 index c5b9a32..4824c69 100644 --- a/templates/brain_backup.j2 +++ b/templates/brain_backup.j2 @@ -85,9 +85,11 @@ find $backup_dir -type d -ctime +$backup_local_retention -exec rm -rf {} \; ## send to PBS ## /usr/bin/proxmox-backup-client backup slash.pxar:/ \ +{% if backup_path_include %} {% for item in backup_path_include %} {% if item.fs_mount %}--include-dev {{ item.path }} \{% endif %} {% endfor %} +{% endif %} {% if backup_pgsql_enabled %} postgresql.pxar:$backup_dir/$today/postgresql \ {% endif %}