elektro-potkan/backups-job-mysql
Composer 安装命令:
composer require elektro-potkan/backups-job-mysql
包简介
Backups - MySQL dump Job
README 文档
README
Backup Job for dumping MySQL databases using dg/mysql-dump.
This package provides the MySQL job for use with the main elektro-potkan/backups package.
Usage
$db = new mysqli($server, $user, $password, $dbname);
$dump = new MySQLDump($db);
$job = new ElektroPotkan\Backups\Jobs\MySQL($dump);
// register the job ($manager is an instance implementing ElektroPotkan\Backups\IManager)
$manager->addJob('my-db-dump', $job);
Compression
By default, the output backup file will be gzip-compressed.
To disable the compression, pass false as second parameter to job constructor.
$job = new ElektroPotkan\Backups\Jobs\MySQL($dump, false);// gzip compression disabled
Author
Elektro-potkan git@elektro-potkan.cz
Info
Versioning
This project uses Semantic Versioning 2.0.0 (semver.org).
Branching
This project uses slightly modified Git-Flow Workflow and Branching Model:
- https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow
- https://nvie.com/posts/a-successful-git-branching-model/
License
You may use this program under the terms of either the BSD Zero Clause License or the GNU General Public License (GPL) version 3 or later.
See file LICENSE.
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: 0BSD
- 更新时间: 2021-08-30