User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 391,623 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,711 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser:
Views: 1559 | Replies: 2
Reply
Join Date: Aug 2006
Posts: 9
Reputation: bobby08 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bobby08 bobby08 is offline Offline
Newbie Poster

MySQL Database Backups

  #1  
Oct 4th, 2006
Hi everyone,

I feel like such a dumb*** because I don't know how to make automatic database backups.

I would love to make backups every 3 days or so. Perhaps 3 times a week would be good, not daily though.

I'm using MySQL and Windows and my current method of database backing is to do it manually. I navigate to the mysql data directory, and copy and then paste it onto a CD of mine.

I hate how I have to manually do this all the time. I tried Windows scheduled task manager to create a backup of the mysql data directory but its a no go. Somehow it always fails when trying to back it up.

Is there any other alternatives?

Thanks,
Bobby
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2006
Location: NYC
Posts: 133
Reputation: sn4rf3r is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 2
sn4rf3r's Avatar
sn4rf3r sn4rf3r is offline Offline
Junior Poster

Re: MySQL Database Backups

  #2  
Oct 4th, 2006
Originally Posted by bobby08 View Post
Hi everyone,

I feel like such a dumb*** because I don't know how to make automatic database backups.

I would love to make backups every 3 days or so. Perhaps 3 times a week would be good, not daily though.

I'm using MySQL and Windows and my current method of database backing is to do it manually. I navigate to the mysql data directory, and copy and then paste it onto a CD of mine.

I hate how I have to manually do this all the time. I tried Windows scheduled task manager to create a backup of the mysql data directory but its a no go. Somehow it always fails when trying to back it up.

Is there any other alternatives?

Thanks,
Bobby


You should use mysqlhotcopy instead of manually copy and pasting the files to a cd. Unless you are stopoping mysql and then doing the deed, then it doesnt matter as there will be no writes to the files.
As for automating this, depending on your version of M$ you can schedule a job to run at a certain time. You can also compress the db files to save space once you have them in a different directory.

The command you want to run would look something like this:
mysqlhotcopy --user=me --password=hello --allowold db1 db2 db3 backup_folder

If all else fails you can use mysqldump.

hope this helps
Reply With Quote  
Join Date: Jul 2006
Location: Remunj
Posts: 165
Reputation: pritaeas is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 16
pritaeas's Avatar
pritaeas pritaeas is offline Offline
Junior Poster

Re: MySQL Database Backups

  #3  
Oct 5th, 2006
If you want to consider a third party tool, then Navicat is a good option. It's not expensive, and includes a scheduler for SQL jobs. It can also administer databases, and easily transfer databases across servers. For more info: http://www.navicat.com/product.html

And no, I have nothing to do with, I am just a satisfied user.
"Premature optimization is the root of all evil."
Donald Knuth / Tony Hoare
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb MySQL Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the MySQL Forum

All times are GMT -4. The time now is 12:37 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC