From 83ec52ea565a01a1047bfb56d52e76fa171b086d Mon Sep 17 00:00:00 2001 From: PhantomVl Date: Wed, 24 Apr 2019 13:38:51 +0300 Subject: [PATCH] - Bug fix, provision sccp --- install.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.php b/install.php index 08d7b05..5c7e94c 100644 --- a/install.php +++ b/install.php @@ -808,6 +808,10 @@ function CreateBackUpConfig() { $backup_files = array('extconfig','extconfig','res_mysql', 'res_config_mysql','sccp'); $backup_ext = array('_custom.conf', '.conf'); $dir = $cnf_int->get('ASTETCDIR'); + + $filename = $dir.'/sccp_backup_'.date("Ymd").'.sql'; + $result = exec('mysqldump '.$amp_conf['AMPDBNAME'].' --password='.$amp_conf['AMPDBPASS'].' --user='.$amp_conf['AMPDBUSER'].' --single-transaction >'.$filename ,$output); + $zip = new \ZipArchive(); $filename = $dir . "/sccp_instal_backup" . date("Ymd"). ".zip"; if ($zip->open($filename, \ZIPARCHIVE::CREATE)) {