Example #1
0
 /**
  * 备份所有数据看
  * @return array
  */
 public function backupDBAll()
 {
     $type = "系统自动备份";
     $path = DB_Backup_PATH . "/SYSTEM_" . date("Ymd");
     $MySQLLogic = new \Admin\Logic\MySQLLogic();
     $tables = $MySQLLogic->getAllTableName();
     return $this->backupDB($type, $tables, $path);
 }