From 7e5fe2eaad126d875b5bca9e06e9c8cacf6c9fb0 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 28 Jan 2019 18:24:11 -0800 Subject: [PATCH] MySQL backup - automatically add '.gz' to the filename when gZip is enabled. --- e107_handlers/mysql_class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/e107_handlers/mysql_class.php b/e107_handlers/mysql_class.php index 1f66863b4..6f56be874 100644 --- a/e107_handlers/mysql_class.php +++ b/e107_handlers/mysql_class.php @@ -2747,6 +2747,11 @@ class e_db_mysql $tableList = explode(",",$table); } + if(!empty($options['gzip'])) + { + $backupFile .= '.gz'; + } + include_once(dirname(__FILE__) . '/Ifsnop/Mysqldump/Mysqldump.php');