alexivashchenko / php-mysql-backup
Simple PHP class to create regular MySQL database backups
dev-master
2021-01-15 09:06 UTC
Requires
- ifsnop/mysqldump-php: ^2.8
This package is auto-updated.
Last update: 2024-10-15 17:02:26 UTC
README
Description
Simple PHP class to create regular MySQL database backups.
What it does:
- Create MySQL database backup.
- Remove old MySQL database backups.
The output is the set of sql.gzip
files.
Installation
Composer
From the Command line:
composer require alexivashchenko/php-mysql-backup:dev-master
In composer.json
:
{
"require": {
"alexivashchenko/php-mysql-backup": "dev-master"
}
}
Usage
- Create
config.php
file, set up rightVENDOR_PATH
and$Config
. - Create CRON job to run
run-backup.php
file.