[pbs-devel] [PATCH v3 pve-container 5/5] fix #3460: restore: honor '--ignore-unpack-errors' flag for pbs

Max Carrara m.carrara at proxmox.com
Mon Jul 17 10:04:10 CEST 2023


Signed-off-by: Max Carrara <m.carrara at proxmox.com>
---
 NOTE: This patch requires a version bump+upload of proxmox-backup-client as well
       as bumping the versioned dependency in debian/control

 Changes v1 --> v2:
  * None

 Changes v2 --> v3:
  * None

 src/PVE/LXC/Create.pm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/PVE/LXC/Create.pm b/src/PVE/LXC/Create.pm
index 981f92d..f4c3220 100644
--- a/src/PVE/LXC/Create.pm
+++ b/src/PVE/LXC/Create.pm
@@ -116,6 +116,10 @@ sub restore_proxmox_backup_archive {
     my $cmd = "restore";
     my $param = [$name, "root.pxar", $rootdir, '--allow-existing-dirs'];
 
+    if ($no_unpack_error) {
+        push(@$param, '--ignore-extract-device-errors');
+    }
+
     PVE::Storage::PBSPlugin::run_raw_client_cmd(
 	$scfg, $storeid, $cmd, $param, userns_cmd => $userns_cmd);
 
-- 
2.39.2






More information about the pbs-devel mailing list