Database Backup Tool
This tool is written by PHP. If your website is also written by PHP, then using this tool does not require additional environment requirements. (The version requirements are described in Compatibility section below)
This tool supports both physical and logical backups. Due physical backup just is file copy, so the backup method supported all databases. However the logical backup only supports MySQL (and MariaDB), in the future will support more databases.
This tool also supports both local and remote storage. The support storage way is detailed below.
DBBT requires PHP 7.0+.
DBBT is well tested only on linux systems, other systems (like: Windows) do not guarantee normal operation.
- MySQL (and MariaDB)
- All database (in physics backup case)
- Local file system storage
- QCloud COS remote storage
tar.gz
(if you haveGNU tar
software)zip
compress (if you haveZip
PHP extension)
For user, it is more recommend to use the PHAR file
- Download the source code to your local.
cd
to the source code directory.composer install --no-dev
(In this step, you must make sure you have composer).- Copy
config.etc.php
toconfig.php
and configure it. (NOTE:config.etc.php
already includes configuration structure. You can configure your backup tool on this basis) php run.php
, does not display any messages if execution succeed.
- Download the PHAR release file from the release center to your local.
- Create a config file based on the sample configuration file.
php dbbt.phar --config=<config file path>
where 'config file path' is the path of the config file you created.
If this tool on the way in the use of the problem or you have any ideas, please go to the Github issues.
The project welcomes anyone to contribute code. For more information, see CONTRIBUTING.md
file.