From: Dominik Csapak Date: Wed, 3 Jun 2020 12:28:22 +0000 (+0200) Subject: fix pbs backups of templates/vms without disks X-Git-Url: https://git.proxmox.com/?p=qemu-server.git;a=commitdiff_plain;h=77b24c626727346513199b485dfa13f7c8c49f12 fix pbs backups of templates/vms without disks fingerprint is now given with an environment variable not as parameter Signed-off-by: Dominik Csapak --- diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm index 1a0d437..91df455 100644 --- a/PVE/VZDump/QemuServer.pm +++ b/PVE/VZDump/QemuServer.pm @@ -356,6 +356,7 @@ sub archive_pbs { } local $ENV{PBS_PASSWORD} = $password; + local $ENV{PBS_FINGERPRINT} = $fingerprint if defined($fingerprint); my $cmd = [ '/usr/bin/proxmox-backup-client', 'backup', @@ -364,7 +365,6 @@ sub archive_pbs { '--backup-id', "$vmid", '--backup-time', $task->{backup_time}, ]; - push @$cmd, '--fingerprint', $fingerprint if defined($fingerprint); push @$cmd, "qemu-server.conf:$conffile"; push @$cmd, "fw.conf:$firewall" if -e $firewall;