Use LZMA2 compression. Keep last 20k reports

This commit is contained in:
Latif Khalifa
2013-12-16 00:13:09 +01:00
parent 32caed6219
commit f5bbc2cd4a

View File

@@ -7,7 +7,7 @@ require_once SITE_ROOT . "/lib/init.php";
class PartitionArchiver
{
var $keep = 10000;
var $keep = 20000;
var $db_name;
var $db_user;
var $db_pass;
@@ -102,7 +102,7 @@ class PartitionArchiver
$retval = 0;
system("rm -f " . escapeshellarg($this->full_filename));
system($this->cmd . ' | 7z a -si ' . escapeshellarg($this->full_filename) . ' >/dev/null 2>&1', $retval);
system($this->cmd . ' | 7z a -m0=lzma2 -si ' . escapeshellarg($this->full_filename) . ' >/dev/null 2>&1', $retval);
if ($retval !== 0) return false;
}