MySQL Backup Script

Posted: June 22, 2012 in MySQL

The script has been written in bash, and has been tested on Centos Linux 5.x only. It can be run in two modes; either a full backup or specific databases backup. When using the database mode, the script checks the engines with which the tables in the database have been built. If tables of type MyISAM are present, a backup with the –lock-all-tables is performed. In the event, only tables of type Innodb exist, the backup is performed with the –single-transaction option. The script can be downloaded from launchpad  and is also available from github

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s