I'm running a M/S replication of MySQL 5.5 / innoDB (over ubuntu).
My DB is pretty large: ~250GB.
I'm looking for a backup tool/service that will do the following:
- full backup
- no downtime / locks on the servers
- automated as possible
any suggestions?
|
|
Another option is to upload the database to Amazon RDS, which is a hosted database service. There is an option to get large disk storage on an RDS instance:
So you could put your 250GB on the hard disk and have only the crucial stuff run in-memory. Amazon would then take care of backups, high availability and failover for you. Could be costly but it will save you the work of automating mysqldump, etc. |
|||
|
|
Just using mysqldump, you can perform some interesting backup schemes. I wrote a post back in April 17, 2011 on automation scripts for parallel mysqldumps : please see How can I optimize a mysqldump of a large database? I also mentioned alternatives in that post, including XtraBackup. In your 250G database, if one table is 200G my solution may be inadequate. Please run this query to find out your 5 biggest tables
Based on your pastebin, here are the 5 biggest tables
You could use mysqldump set in parallel on the Slave only : please see How can I optimize a mysqldump of a large database? The basic paradigm is to perform this sequence on the Slave:
|
||||
|
|
|
One of the options is to have an additional slave MySQL server specifically for the backup purpose which can be stopped/locked without affecting the production DB. |
|||||||
|