diff --git a/templates/brain_backup.j2 b/templates/brain_backup.j2 index a41d74f..68c4d1f 100644 --- a/templates/brain_backup.j2 +++ b/templates/brain_backup.j2 @@ -85,7 +85,7 @@ find $backup_dir -type d -ctime +$backup_retention -exec rm -rf {} \; ## send to PBS ## /usr/bin/proxmox-backup-client backup slash.pxar:/ \ -{% for item in backup_path %} +{% for item in backup_path_include %} {% if item.fs_mount }}--include-dev {{ item.path }} \{% endif %} {% endfor %} {% if backup_pgsql_enabled %} diff --git a/templates/pxarexclude.j2 b/templates/pxarexclude.j2 index 459d72b..ee000a4 100644 --- a/templates/pxarexclude.j2 +++ b/templates/pxarexclude.j2 @@ -1,7 +1,7 @@ /* -{% for item in backup_path %} -{% if item.exclude }}{{ item.exclude }}{% endif %} +{% for item in backup_path_exclude %} +{{ item.value }} {% endfor %} -{% for item in backup_path %} -!{{ item.value }} +{% for item in backup_path_include %} +!{{ item.path }} {% endfor %}