Jump to content

MySQL Backup of Large Database


shamoon

Recommended Posts

Hello All,

I am trying to have a nightly backup of my databases, but the are rather large.  I am currently using the "automysqlbackup" tool, which uses mysqldump, but the problem is that it locks the database while doing it's thing.  Seeing as how the database is huge, it takes a few minutes and our site is down.  Are there any other tools that anyone can recommend?

Link to comment
https://forums.phpfreaks.com/topic/77520-mysql-backup-of-large-database/
Share on other sites

Hello All,

I am trying to have a nightly backup of my databases, but the are rather large.  I am currently using the "automysqlbackup" tool, which uses mysqldump, but the problem is that it locks the database while doing it's thing.  Seeing as how the database is huge, it takes a few minutes and our site is down.  Are there any other tools that anyone can recommend?

Try xaprb's MySQL Toolkit (a.k.a. Maatkit).

You could always create a duplicate set of tables (ie. table1 = table1_backup) and select table1 into table1_backup then run your backup tool (and obviously empty "table1_backup" on completion. You might take a little hit on performance for the duration of the select but it would allow you to do live backups with little risk. 

You could always create a duplicate set of tables (ie. table1 = table1_backup) and select table1 into table1_backup then run your backup tool (and obviously empty "table1_backup" on completion. You might take a little hit on performance for the duration of the select but it would allow you to do live backups with little risk. 

That's called replication.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.