add backup_host_id

This commit is contained in:
Ludovic Cartier
2024-12-24 15:33:59 +01:00
parent 2bb51ac0b2
commit 5ba16338c6
2 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,7 @@ 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 {{ ansible_hostname }} \
--backup-id {{ backup_host_id | default({{ ansible_hostname }}) }} \
{% if backup_path_include is defined %}
{% for item in backup_path_include %}
{% if item.fs_mount is defined %}--include-dev {{ item.path }} \{% endif %}