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);
 }
 /**
  * 列出以打包sql文件
  */
 public function zipList()
 {
     $MySQLLogic = new \Admin\Logic\MySQLLogic();
     $data = $MySQLLogic->getZipFilesList();
     $this->assign("list", $data['list']);
     $this->assign("total", $data['size']);
     $this->assign("files", count($data['list']));
     $this->display();
 }