Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 736 Bytes

File metadata and controls

24 lines (21 loc) · 736 Bytes

MySQLBackupTool

PHP script to backup several databases in one server.

How to install

  1. First clone the repository using
git clone https://github.com/adbarbosa/MySQLBackupTool.git
  1. 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
  1. Edit the new file config.json to reflect your username, password, host for acessing MySQL server and alter batabase name to backup

  2. change permissions to execute the file main.php:

sudo chmod +x main.php
  1. To make a backup of the databases simply run the following command inside folder MySQLBackupTool:
./main.php