From f5bbc2cd4a819e444643af4cf69fb3f8e4b6ebd2 Mon Sep 17 00:00:00 2001 From: Latif Khalifa Date: Mon, 16 Dec 2013 00:13:09 +0100 Subject: [PATCH] Use LZMA2 compression. Keep last 20k reports --- backup/backup_partition.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/backup_partition.php b/backup/backup_partition.php index f434ada..d028663 100755 --- a/backup/backup_partition.php +++ b/backup/backup_partition.php @@ -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; }