[pve-devel] [PATCH] improve creation of LXC archive

Wolfgang Link w.link at proxmox.com
Tue Jul 28 16:05:07 CEST 2015


when create a archive the container config will be the fist file in archive.
This is useful if we recover the archive.
---
 src/PVE/VZDump/LXC.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm
index ceff324..21fb3c1 100644
--- a/src/PVE/VZDump/LXC.pm
+++ b/src/PVE/VZDump/LXC.pm
@@ -254,7 +254,7 @@ sub archive {
     my $cmd = "(";
 
     $cmd .= "cd $snapdir;find . $findargs|sed 's/\\\\/\\\\\\\\/g'|";
-    $cmd .= "tar cpf - $taropts --null -T -";
+    $cmd .= "tar cpf - $taropts etc/vzdump/lxc.conf --null -T -";
     my $bwl = $opts->{bwlimit}*1024; # bandwidth limit for cstream
     $cmd .= "|cstream -t $bwl" if $opts->{bwlimit};
     $cmd .= "|$comp" if $comp;
-- 
2.1.4





More information about the pve-devel mailing list