all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Stoiko Ivanov <s.ivanov@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH manager 1/2] vzdump-hook-script: rename TARFILE to TARGET
Date: Tue, 14 Jul 2020 10:09:18 +0200	[thread overview]
Message-ID: <20200714080919.6713-2-s.ivanov@proxmox.com> (raw)
In-Reply-To: <20200714080919.6713-1-s.ivanov@proxmox.com>

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 <s.ivanov@proxmox.com>
---
 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





  reply	other threads:[~2020-07-14  8:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-14  8:09 [pve-devel] [PATCH manager 0/2] readd TARFILE environment variable in VZDump Stoiko Ivanov
2020-07-14  8:09 ` Stoiko Ivanov [this message]
2020-07-14  8:09 ` [pve-devel] [PATCH manager 2/2] VZDump: add TARFILE to environment for hookscripts Stoiko Ivanov
2020-07-14  8:31 ` [pve-devel] applied-series: [PATCH manager 0/2] readd TARFILE environment variable in VZDump Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200714080919.6713-2-s.ivanov@proxmox.com \
    --to=s.ivanov@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal