diff --git a/templates/brain_backup.j2 b/templates/brain_backup.j2 index c5b9a32..4824c69 100644 --- a/templates/brain_backup.j2 +++ b/templates/brain_backup.j2 @@ -85,9 +85,11 @@ find $backup_dir -type d -ctime +$backup_local_retention -exec rm -rf {} \; ## send to PBS ## /usr/bin/proxmox-backup-client backup slash.pxar:/ \ +{% if backup_path_include %} {% for item in backup_path_include %} {% if item.fs_mount %}--include-dev {{ item.path }} \{% endif %} {% endfor %} +{% endif %} {% if backup_pgsql_enabled %} postgresql.pxar:$backup_dir/$today/postgresql \ {% endif %}