mirko-pagliai / cakephp-mysql-backup
Mysql Backup plugin for CakePHP
Installs: 4 808
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 0
Forks: 1
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=5.5.9
- cakephp/cakephp: >=3.2.0 <4.0
Requires (Dev)
- cakephp/cakephp-codesniffer: 2.*
- mirko-pagliai/reflection: ^1.0
- phpunit/phpunit: ^5.7|^6.0
This package is not auto-updated.
Last update: 2022-02-01 13:02:46 UTC
README
Starting June 2017 and 1.1.1 version, this repository has been abandoned.
See instead: cakephp-database-backup.
MySQLBackup is a CakePHP plugin to export, import and manage database backups.
Installation
You can install the plugin via composer:
$ composer require --prefer-dist mirko-pagliai/cakephp-mysql-backup
Then you have to edit APP/config/bootstrap.php
to load the plugin:
Plugin::load('MysqlBackup', ['bootstrap' => true]);
For more information on how to load the plugin, please refer to the Cookbook.
By default the plugin uses the APP/backups
directory to save the backups
files. So you have to create the directory and make it writable:
$ mkdir backups/ && chmod 775 backups/
If you want to use a different directory, read below.
Requirements
MySQLBackup requires mysql
and mysqldump
.
Optionally, if you want to handle compressed backups, bzip2
and gzip
are
also required.
The installation of these binaries may vary depending on your operating system.
Configuration
The plugin uses some configuration parameters. See our wiki:
If you want to send backup files by email, remember to set up your application correctly so that it can send emails. For more information on how to configure your application, see the Cookbook.
How to use
See our wiki:
- Export backups as cron jobs
- How to use the BackupExport utility
- How to use the BackupImport utility
- How to use the BackupManager utility
- How to use the BackupShell
Versioning
For transparency and insight into our release cycle and to maintain backward compatibility, MySQLBackup will be maintained under the Semantic Versioning guidelines.