mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Fix for backup cron not working.
This commit is contained in:
@@ -1969,18 +1969,19 @@ class e_db_mysql
|
|||||||
$fileName = ($table =='*') ? str_replace(" ","_",SITENAME) : $table;
|
$fileName = ($table =='*') ? str_replace(" ","_",SITENAME) : $table;
|
||||||
$fileName = preg_replace('/[^\w]/i',"",$fileName);
|
$fileName = preg_replace('/[^\w]/i',"",$fileName);
|
||||||
|
|
||||||
$backupFile = ($file) ? e_BACKUP.$file : e_BACKUP.$fileName."_".$this->mySQLPrefix.date("Y-m-d-H-i-s").".sql";
|
$backupFile = ($file) ? e_BACKUP.$file : e_BACKUP.strtolower($fileName)."_".$this->mySQLPrefix.date("Y-m-d-H-i-s").".sql";
|
||||||
|
|
||||||
if($table=='*')
|
if($table=='*')
|
||||||
{
|
{
|
||||||
$nolog = vartrue($options['nologs']) ? 'nologs' : '';
|
$nolog = vartrue($options['nologs']) ? 'nologs' : 'all';
|
||||||
$tableList = $this->db_TableList($nolog);
|
$tableList = $this->db_TableList($nolog);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$tableList = explode(",",$table);
|
$tableList = explode(",",$table);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$header = "-- e107 Database Backup File \n";
|
$header = "-- e107 Database Backup File \n";
|
||||||
$header .= "-- Host: ".$_SERVER['SERVER_NAME']."\n";
|
$header .= "-- Host: ".$_SERVER['SERVER_NAME']."\n";
|
||||||
$header .= "-- Generation Time: ".date('r')."\n";
|
$header .= "-- Generation Time: ".date('r')."\n";
|
||||||
|
Reference in New Issue
Block a user