PHP script to backup several databases in one server.
- First clone the repository using
git clone https://github.com/adbarbosa/MySQLBackupTool.git
- Enter folder MySQLBackupTool and create a copy of file config.default.json with new name config.json
cd MySQLBackupTool
cp config.default.json config.json
-
Edit the new file config.json to reflect your username, password, host for acessing MySQL server and alter batabase name to backup
-
change permissions to execute the file main.php:
sudo chmod +x main.php
- To make a backup of the databases simply run the following command inside folder MySQLBackupTool:
./main.php