How to schedule a cron job to backup a MySql database every week?

Posted by KevinM on Stack Overflow See other posts from Stack Overflow or by KevinM
Published on 2010-05-31T23:15:49Z Indexed on 2010/05/31 23:23 UTC
Read the original article Hit count: 240

Filed under:
|
|

What is a command line I can use to back up a MySql database every single week into a file name with the date (so that it doesn't collide with previous backups)?

Also, is this a reasonable backup strategy? My database is relatively small (a complete export is only 3.2 megs right now). The churn rate is relatively low. I need to be able to get the complete DB back if something goes wrong. And it would be extra cool if there's a way that I could see the changes that occur across a time span.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about cron