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 \