[pve-devel] applied: [PATCH manager 2/2] vzdump: set target key for PBS based backups

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Jul 3 19:31:08 CEST 2020


Signed-off-by: Thomas Lamprecht <t.lamprecht at 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





More information about the pve-devel mailing list