From a8ce0ef7c7355c83e720f2d8fa1b6bcfdd0b32ea Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Tue, 24 Dec 2024 09:40:41 +0100 Subject: [PATCH] template - update var name & condition correction --- templates/brain_backup.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/brain_backup.j2 b/templates/brain_backup.j2 index 9b6c886..c5b9a32 100644 --- a/templates/brain_backup.j2 +++ b/templates/brain_backup.j2 @@ -81,12 +81,12 @@ sudo su - postgres -c "/usr/bin/pg_dumpall --roles-only > $backup_dir/$today/pos {% endif %} # purge old backups -find $backup_dir -type d -ctime +$backup_retention -exec rm -rf {} \; +find $backup_dir -type d -ctime +$backup_local_retention -exec rm -rf {} \; ## send to PBS ## /usr/bin/proxmox-backup-client backup slash.pxar:/ \ {% 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 %} {% if backup_pgsql_enabled %} postgresql.pxar:$backup_dir/$today/postgresql \