From 6b7264190d9f6467c83c44ed76eb1a5e0d9e8ff9 Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Tue, 24 Dec 2024 14:47:45 +0100 Subject: [PATCH] template brain_backup - add exclude from backup --- templates/brain_backup.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/brain_backup.j2 b/templates/brain_backup.j2 index a64c913..124fc0d 100644 --- a/templates/brain_backup.j2 +++ b/templates/brain_backup.j2 @@ -90,6 +90,11 @@ find $backup_dir -type d -ctime +$backup_local_retention -exec rm -rf {} \; {% if item.fs_mount is defined %}--include-dev {{ item.path }} \{% endif %} {% endfor %} {% endif %} +{% if backup_exclude is defined %} +{% for item in backup_exclude %} +--exclude {{ item }} \ +{% endfor %} +{% endif %} {% if backup_pgsql_enabled is sameas true %} postgresql.pxar:$backup_dir/$today/postgresql \ {% endif %}