mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-20 09:22:56 +00:00
数据库备份
This commit is contained in:
parent
59e3a6bda9
commit
2a66216c6f
@ -13,14 +13,12 @@ use \tp5er\Backup;
|
||||
*/
|
||||
class SystemDatabackup extends AuthController
|
||||
{
|
||||
/**
|
||||
* 数据类表列表
|
||||
*/
|
||||
public function index(){
|
||||
$config=array(
|
||||
'path' => './Data/',//数据库备份路径
|
||||
'part' => 20971520,//数据库备份卷大小
|
||||
'compress' => 0,//数据库备份文件是否启用压缩 0不压缩 1 压缩
|
||||
'level' => 9 //数据库备份文件压缩级别 1普通 4 一般 9最高
|
||||
);
|
||||
$db= new Backup($config);
|
||||
|
||||
$db= new Backup();
|
||||
var_dump($db->dataList());
|
||||
// return $this->fetch('index',['list'=>$db->dataList()]);
|
||||
// return $this->fetch();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user