template - update var name & condition correction

This commit is contained in:
Ludovic Cartier 2024-12-24 09:40:41 +01:00
parent 24e49411c1
commit a8ce0ef7c7

View File

@ -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 \