From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 6E53662C82 for ; Tue, 14 Jul 2020 10:09:30 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 6720E23B20 for ; Tue, 14 Jul 2020 10:09:30 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 8184F23B07 for ; Tue, 14 Jul 2020 10:09:29 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 4BC5343F4D for ; Tue, 14 Jul 2020 10:09:29 +0200 (CEST) From: Stoiko Ivanov To: pve-devel@lists.proxmox.com Date: Tue, 14 Jul 2020 10:09:18 +0200 Message-Id: <20200714080919.6713-2-s.ivanov@proxmox.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200714080919.6713-1-s.ivanov@proxmox.com> References: <20200714080919.6713-1-s.ivanov@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [vzdump-hook-script.pl] Subject: [pve-devel] [PATCH manager 1/2] vzdump-hook-script: rename TARFILE to TARGET X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2020 08:09:30 -0000 with the change introduced in 848cf539e59b4553559b9ff3207a3c5556dc1cc0 the exported variable name changed from tarfile to target. this patch reflects the renaming in the example hook script. Signed-off-by: Stoiko Ivanov --- vzdump-hook-script.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vzdump-hook-script.pl b/vzdump-hook-script.pl index 4be46211..1be440b3 100755 --- a/vzdump-hook-script.pl +++ b/vzdump-hook-script.pl @@ -43,17 +43,17 @@ if ($phase eq 'job-start' || my $hostname = $ENV{HOSTNAME}; - # tarfile is only available in phase 'backup-end' - my $tarfile = $ENV{TARFILE}; + # target is only available in phase 'backup-end' + my $target = $ENV{TARGET}; # logfile is only available in phase 'log-end' my $logfile = $ENV{LOGFILE}; - print "HOOK-ENV: vmtype=$vmtype;dumpdir=$dumpdir;storeid=$storeid;hostname=$hostname;tarfile=$tarfile;logfile=$logfile\n"; + print "HOOK-ENV: vmtype=$vmtype;dumpdir=$dumpdir;storeid=$storeid;hostname=$hostname;target=$target;logfile=$logfile\n"; # example: copy resulting backup file to another host using scp if ($phase eq 'backup-end') { - #system ("scp $tarfile backup-host:/backup-dir") == 0 || + #system ("scp $target backup-host:/backup-dir") == 0 || # die "copy tar file to backup-host failed"; } -- 2.20.1