-
Notifications
You must be signed in to change notification settings - Fork 7
/
backup.php
38 lines (35 loc) · 1004 Bytes
/
backup.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/*
* This file is part of the tp5er/tp5-databackup.
*
* (c) pkg6 <https://github.com/pkg6>
*
* (L) Licensed <https://opensource.org/license/MIT>
*
* (A) zhiqiang <https://www.zhiqiang.wang>
*
* This source file is subject to the MIT license that is bundled.
*/
return [
"default" => "file",
"backups" => [
"file" => [
//目前只支持sql文件
"write_type" => 'file',
//读取生成sql语句的类
"reader_type" => 'mysql',
//在备份文件的时候是否 携带 DROP TABLE IF EXISTS `test_table`;
'drop_sql' => true,
//sql文件存储路径
"path" => app()->getRootPath() . "backup",
]
],
//一次请求存储100条数据
"limit" => 100,
"before_import_sql" => [
// "set global max_allowed_packet = 2*1024*1024*10",
]
// 'layui'=>[
// 'tp5erjs'=>'https://cdn.jsdelivr.net/gh/pkg6/tp5-databackup@main/src/tp5er.js'
// ]
];