[pve-devel] [PATCH] improve creation of OpenVZ archive
Wolfgang Link
w.link at proxmox.com
Tue Jul 28 16:06:37 CEST 2015
when create a archive the container config will be the fist file in archive.
This is useful if we recover the archive.
---
PVE/VZDump/OpenVZ.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/VZDump/OpenVZ.pm b/PVE/VZDump/OpenVZ.pm
index 779c3a1..9fa37c7 100644
--- a/PVE/VZDump/OpenVZ.pm
+++ b/PVE/VZDump/OpenVZ.pm
@@ -253,7 +253,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/vps.conf --null -T -";
my $bwl = $opts->{bwlimit}*1024; # bandwidth limit for cstream
$cmd .= "|cstream -t $bwl" if $opts->{bwlimit};
$cmd .= "|$comp" if $comp;
--
1.7.10.4
More information about the pve-devel
mailing list