I’ve been searching for an easy script to backup MySQL data in Linux automatically (weekly basis) but couldn’t find something clear to me. I am doing the back up manually:
mysqldump -u root -ppassword billing -r "/file/private/billing_backup.sql
Can you please guide me to an easy script that perform the automatic backup?
I guess you can throw the command you provided yourself in a script, and add that to cron. See http://www.scrounge.org/linux/cron.html for instructions on how to do that.
This’ll overwrite /file/private/billing_backup.sql every time; you can use timestamped filenames to avoid that