mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-02-07 06:15:33 +00:00
数据库备份
This commit is contained in:
parent
67b128ac5b
commit
b40798d230
@ -19,13 +19,13 @@ class SystemDatabackup extends AuthController
|
|||||||
public function _initialize()
|
public function _initialize()
|
||||||
{
|
{
|
||||||
$config = array(
|
$config = array(
|
||||||
'path' => './back/data/',
|
'path' => './backup/data/',
|
||||||
//数据库备份路径
|
//数据库备份路径
|
||||||
'part' => 20971520,
|
'part' => 20971520,
|
||||||
//数据库备份卷大小
|
//数据库备份卷大小
|
||||||
'compress' => 1,
|
'compress' => 1,
|
||||||
//数据库备份文件是否启用压缩 0不压缩 1 压缩
|
//数据库备份文件是否启用压缩 0不压缩 1 压缩
|
||||||
'level' => 9,
|
'level' => 5,
|
||||||
);
|
);
|
||||||
$this->DB = new Backup($config);
|
$this->DB = new Backup($config);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user