elektro-potkan / backups-job-mysql
Backups - MySQL dump Job
v1.0.1
2021-09-21 12:55 UTC
Requires
- php: >= 7.2
- dg/mysql-dump: ^1.5.1
- elektro-potkan/backups: ^1.0.0
- nette/utils: ^3.0.1
Requires (Dev)
- phpstan/phpstan: ^0.12
- phpstan/phpstan-deprecation-rules: ^0.12
- phpstan/phpstan-nette: ^0.12
- phpstan/phpstan-strict-rules: ^0.12
This package is auto-updated.
Last update: 2025-02-21 19:02:27 UTC
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.