LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-29-2009, 03:05 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Question Suggestions To Nighly MySQL Dumps?


I have a MySQL 5.1 production server & a few critical MySQL servers but I would like to know the best suggestions for backing up my databases? I can manually do a 'mysqldump' on the server and copy them to off site storage but I really don't know what the best thing to do would be. Anyone who admin's a MySQL server offer any assistance on the best way to back-up my databases via MySQL?

Thanks for any assistance. I would like to keep this as easy as possible. Limit the backups to simply using just Linux & MySQL w/o any administration GUI's or applications beyond what I already have installed.

Thanks!
 
Old 09-29-2009, 06:20 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,632

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Carlwill View Post
I have a MySQL 5.1 production server & a few critical MySQL servers but I would like to know the best suggestions for backing up my databases? I can manually do a 'mysqldump' on the server and copy them to off site storage but I really don't know what the best thing to do would be. Anyone who admin's a MySQL server offer any assistance on the best way to back-up my databases via MySQL?

Thanks for any assistance. I would like to keep this as easy as possible. Limit the backups to simply using just Linux & MySQL w/o any administration GUI's or applications beyond what I already have installed.

Thanks!
mysqldumps are the easiest way to go, without spending $$$. You can probably get MySQl agents for many backup programs (like Tivoli, Arcserve, etc.), and get more flexibility, but if you just want quick 'hot' backups, mysqldump is the way to go. Easy to cron, too, and you can even put the offsite copy command into the same shell script.
 
Old 09-29-2009, 08:36 PM   #3
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Actually, take a look at ZRM for MySQL (Zmanda Recovery Manager for MySQL). There is a community edition that you can download and use for free and an enterprise edition that you can get support contracts with. It will manage your backups for all of your MySQL databases and servers, and will do both full and incremental (using a transaction log) backups. You can automate the whole thing and get email reports. Then you can work that into your enterprise tape backup scheme if you have that sort of thing, or just rsync your backup directory off site.
 
Old 09-30-2009, 01:19 AM   #4
doddg
LQ Newbie
 
Registered: Oct 2003
Location: Germany
Distribution: RH 9.0, Mandrake 7.1, SuSE 8.x
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by Carlwill View Post
I have a MySQL 5.1 production server & a few critical MySQL servers but I would like to know the best suggestions for backing up my databases? I can manually do a 'mysqldump' on the server and copy them to off site storage but I really don't know what the best thing to do would be. Anyone who admin's a MySQL server offer any assistance on the best way to back-up my databases via MySQL?

Thanks for any assistance. I would like to keep this as easy as possible. Limit the backups to simply using just Linux & MySQL w/o any administration GUI's or applications beyond what I already have installed.

Thanks!
We have 5 production servers and a few backup/test servers. All production servers are backed up using mysqldump. It's simple, easy to script and works (yes we also test our recovery procedures on the backup servers). Don't forget the conf's and Modules, especially Apache, MySQL and PHP, 'cos it's a real pain at 4 in the morning to try to remember how the servers were configured.
 
Old 09-30-2009, 07:37 AM   #5
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Just a quick added note about ZRM for MySQL, since I don't think it was clear in my post above -- ZRM has extensive capabilities all based on the standard MySQL tools -- http://wiki.zmanda.com/index.php/Cap..._ZRM_for_MySQL.

ZRM will use mysqldump, mysqlhotcopy, MySQL replication, snapshots (LVM or ZFS), and will do the appropriate thing depending on which storage engine you use for MySQL. It can do point in time recovery using MySQL's binary logs. So, if an operator or sysadmin blows it, and messes up the database, ZRM can recover to the point in time just before the error (assuming you have configured the use of binary logs). It can also use ssl connections to backup remote MySQL servers.

So, it is perl scripted mysqldump and a lot more.
 
Old 10-01-2009, 05:18 AM   #6
TheEdge
LQ Newbie
 
Registered: Oct 2004
Posts: 15

Rep: Reputation: 0
Quote:
Originally Posted by Carlwill View Post
I have a MySQL 5.1 production server & a few critical MySQL servers but I would like to know the best suggestions for backing up my databases? I can manually do a 'mysqldump' on the server and copy them to off site storage but I really don't know what the best thing to do would be. Anyone who admin's a MySQL server offer any assistance on the best way to back-up my databases via MySQL?

Thanks for any assistance. I would like to keep this as easy as possible. Limit the backups to simply using just Linux & MySQL w/o any administration GUI's or applications beyond what I already have installed.

Thanks!
Nicely scripted mysql dump: http://www.ameir.net/blog/index.php?...Cron-v2.1.html with rsnapshot (http://rsnapshot.org/) getting the dumps off the server efficiently.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
quick mysql create table suggestions evil_empire Programming 2 09-04-2009 12:26 PM
Request for suggestions on searching within a MySQL database graemef Programming 2 05-17-2008 06:59 AM
Looking for suggestions on MySQL one-way replication Pcghost Linux - Software 1 01-25-2005 10:22 AM
Mysql dumps via Cron job. Thrifty Linux - Software 2 07-28-2004 02:13 PM
Suggestions, Good GUI client for mySQL sonnik Linux - General 1 10-24-2001 01:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration