Download the PHP package wamkj/thinkphp6.0-databackup without Composer
On this page you can find all versions of the php package wamkj/thinkphp6.0-databackup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download wamkj/thinkphp6.0-databackup
More information about wamkj/thinkphp6.0-databackup
Files in wamkj/thinkphp6.0-databackup
Download wamkj/thinkphp6.0-databackup
More information about wamkj/thinkphp6.0-databackup
Files in wamkj/thinkphp6.0-databackup
Vendor wamkj
Package thinkphp6.0-databackup
Short Description thinkphp6.0的数据库自动备份扩展
License Apache-2.0
Package thinkphp6.0-databackup
Short Description thinkphp6.0的数据库自动备份扩展
License Apache-2.0
Keywords thinkphpthink-databackup
Please rate this library. Is it a good library?
Informations about the package thinkphp6.0-databackup
使用composer进行安装
composer require wamkj/thinkphp6.0-databackup
引入类文件
use wamkj\thinkphp\Backup;
配置文件
$config=array(
'path' => './Data/',//数据库备份路径
'part' => 20971520,//数据库备份卷大小
'compress' => 0,//数据库备份文件是否启用压缩 0不压缩 1 压缩
'level' => 9 //数据库备份文件压缩级别 1普通 4 一般 9最高
);
实例化
$db= new Backup($config);
数据类表列表
return $this->fetch('index',['list'=>$db->dataList()]);
备份文件列表
return $this->fetch('importlist',['list'=>$db->fileList()]);
备份表
$start= $db->setFile($file)->backup($tables[$id], $start);
导入表
$start= $db->setFile($file)->import($start);
删除备份文件
$db->delFile($time);
修复表
$db->repair($tables)
优化表
$db->optimize($tables)
All versions of thinkphp6.0-databackup with dependencies
PHP Build Version
Package Version
The package wamkj/thinkphp6.0-databackup contains the following files
Loading the files please wait ....