Signed-off-by: Thomas Lamprecht <t.lampre...@proxmox.com>
---
 PVE/VZDump.pm | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm
index 52f40a1b..7a9f1fe0 100644
--- a/PVE/VZDump.pm
+++ b/PVE/VZDump.pm
@@ -726,6 +726,7 @@ sub exec_backup_task {
 
        if ($self->{opts}->{pbs}) {
            die "unable to pipe backup to stdout\n" if $opts->{stdout};
+           $task->{target} = $pbs_snapshot_name;
        } else {
            if ($opts->{stdout}) {
                $task->{target} = '-';
@@ -900,12 +901,8 @@ sub exec_backup_task {
            return;
        }
 
-       # fixme: ??
-       if ($self->{opts}->{pbs}) {
-           debugmsg ('info', "creating pbs archive on storage 
'$opts->{storage}'", $logfd);
-       } else {
-           debugmsg ('info', "creating archive '$task->{target}'", $logfd);
-       }
+       my $archive_txt = $self->{opts}->{pbs} ? 'Proxmox Backup Server' : 
'vzdump';
+       debugmsg('info', "creating $archive_txt archive '$task->{target}'", 
$logfd);
        $plugin->archive($task, $vmid, $task->{tmptar}, $comp);
 
        if ($self->{opts}->{pbs}) {
-- 
2.20.1


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to