Simple PHP class to create regular MySQL database backups.
- Create MySQL database backup.
- Remove old MySQL database backups.
The output is the set of sql.gzip
files.
From the Command line:
composer require alexivashchenko/php-mysql-backup:dev-master
In composer.json
:
{
"require": {
"alexivashchenko/php-mysql-backup": "dev-master"
}
}
- Create
config.php
file, set up rightVENDOR_PATH
and$Config
. - Create CRON job to run
run-backup.php
file.