Commit 99619cec authored by Wolfgang Link's avatar Wolfgang Link Committed by Dietmar Maurer

improve creation of OpenVZ archive

when create a archive the container config will be the fist file in archive.
This is useful if we recover the archive.
parent 5f8f4e78
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment