diff --git a/templates/brain_backup.j2 b/templates/brain_backup.j2 index 16facf8..d67f104 100644 --- a/templates/brain_backup.j2 +++ b/templates/brain_backup.j2 @@ -84,7 +84,9 @@ find $backup_dir -type d -ctime +$backup_local_retention -exec rm -rf {} \; ## send to PBS ## /usr/bin/proxmox-backup-client backup slash.pxar:/ \ ---backup-id {{ backup_host_id | default({{ ansible_hostname }}) }} \ +{% if backup_host_id is defined %} +--backup-id {{ backup_host_id }} \ +{% endif %} {% if backup_path_include is defined %} {% for item in backup_path_include %} {% if item.fs_mount is defined %}--include-dev {{ item.path }} \{% endif %}