[pve-devel] [PATCH container 3/5] vzdump: turn findexcl into its own variable
Fabian Ebner
f.ebner at proxmox.com
Fri Nov 20 15:50:43 CET 2020
for easier readability.
Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
src/PVE/VZDump/LXC.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm
index 05d8495..c02c6e1 100644
--- a/src/PVE/VZDump/LXC.pm
+++ b/src/PVE/VZDump/LXC.pm
@@ -369,6 +369,7 @@ sub archive {
my $tmpdir = $task->{tmpdir};
my $userns_cmd = $task->{userns_cmd};
+ my $findexcl = $self->{vzdump}->{findexcl};
if ($self->{vzdump}->{opts}->{pbs}) {
@@ -427,7 +428,7 @@ sub archive {
push @$tar, "--directory=$snapdir";
push @$tar, '--no-anchored', '--exclude=lost+found' if $userns_cmd;
push @$tar, '--anchored';
- push @$tar, map { "--exclude=.$_" } @{$self->{vzdump}->{findexcl}};
+ push @$tar, map { "--exclude=.$_" } @{$findexcl};
push @$tar, @sources;
--
2.20.1
More information about the pve-devel
mailing list