We have a innodb mysql database so we are lost with lots of different mysql backup strategies. Some talk about mysqldump some talk about third part tools. Some of the tables we also plan to run partitions. Any good tool to help for this task?
Mysql backup strategies
backupinnodbMySQLmysqldump
Related Question
- Mysql – Backup / Export data from MySQL 5.5 attachments table keeps failing!
- Options to Include with mysqldump for Hybrid Databases Backup
- MySQLDump – How to Backup Subset of Rows in Specific Table
- MySQL Backup – Is mysqldump a Hot Backup?
- MySQL – MySQLDump problems with large table
- Mysql – Strategies for rotating backend production MySQL data into a test environment
Best Answer
Today there's hardly any discussion (as I see it, of course), with regard to InnoDB backup. Xtrabackup by Percona is a widespread, feature rich & stable solution which offers:
Xtrabackup derives from InnoDB Hot Backup, nowadays called MySQL Enterprise Backup. There's additional wrapping scripts which allow for the extra featureset.
Smaller databases may benefit from the common
mysqldump
. It really depends on your database size and traffic.mysqldump
, event with--single-transaction
, places a high load on the DB server, and makes for accumulating locks. It is not as hot as you might think (see this post of mine regarding backup temperatures).I use LVM snapshots quite a lot. The great advantage is that these are DB ignorant, so no DB-related bugs affect this type of backup. The great disadvantage is an overly increased I/O. Check out mylvmbackup.
If you have ZFS or another file system which supports snapshots, that may be a great solution. If you have a storage device which supports snapshots, that's great too. All snapshots are DB ignorant, though you often want to script this a-la
mylvmbackup
so as to catch the point in time (DB-wise) for which backup is done.