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
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).

Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.