mirko-pagliai/cakephp-mysql-backup

This package is abandoned and no longer maintained. The author suggests using the mirko-pagliai/cakephp-database-backup package instead.

Mysql Backup plugin for CakePHP

1.1.1 2017-06-26 10:32 UTC

This package is not auto-updated.

Last update: 2022-02-01 13:02:46 UTC


README

Build Status Coverage Status

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:

Versioning

For transparency and insight into our release cycle and to maintain backward compatibility, MySQLBackup will be maintained under the Semantic Versioning guidelines.