修复状态错误
This commit is contained in:
1 parent
52ad002cca
commit
b258bfa917
6 files changed
+95
-35
No files matched your search
@@ -77,8 +77,15 @@ class BackUp extends AdminBase
|
||||
public function daoru()
|
||||
{
|
||||
$db= new up($this->upcnf);
|
||||
$db->repair($tables);
|
||||
$start= $db->setFile($file)->import($start);
|
||||
// // $db->repair($tables);
|
||||
|
||||
$start= $db->getFile('2020-11-04 21:30:38');
|
||||
$file = $start['file'];
|
||||
// dump($start);
|
||||
// halt($file);
|
||||
$s = 0;
|
||||
$start= $db->setFile($file)->import($s);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -56,6 +56,7 @@ Route::group('backup', function () {
|
||||
Route::rule('create', 'BackUp/create', 'post'); # 获取数据
|
||||
Route::rule('data', 'BackUp/ajaxData', 'post'); # 获取数据
|
||||
Route::rule('delete/<time>', 'BackUp/delete', 'post'); # 获取数据
|
||||
Route::rule('daoru', 'BackUp/daoru', 'get'); # 获取数据
|
||||
});
|
||||
|
||||
|
||||
+2
-1
@@ -14,7 +14,8 @@ return [
|
||||
'shichang' => Env::get('shangma.weihuchixu', '100'), # 时长:单位分钟
|
||||
'backup' =>[
|
||||
'path' => './data/',//数据库备份路径
|
||||
'part' => 20971520,//数据库备份卷大小
|
||||
// 'part' => 20971520,//数据库备份卷大小
|
||||
'part' => 1024,//数据库备份卷大小
|
||||
'compress' => 0,//数据库备份文件是否启用压缩 0不压缩 1 压缩
|
||||
'level' => 9 //数据库备份文件压缩级别 1普通 4 一般 9最高
|
||||
],
|
||||
|
||||
Loaded 3 of 6 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user