Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do automatic mysql db backup using mysql workbench

How to do automatic mysql db backup using mysql workbench?

alt text

Is it possible?

like image 648
Wern Ancheta Avatar asked Dec 26 '10 03:12

Wern Ancheta


2 Answers

Mysql bench is not required for automatic backup,
setup a crontab and use mysqldump (or equivalent) will do the same job and is easier.

example:

crontab -e

/* backup every day at 00:00:00 */
0 0 * * * mysqldump -u root -ppassword YOUR_DATABASE > /backup/YOUR_DATABASE.sql
like image 185
ajreal Avatar answered Oct 27 '22 00:10

ajreal


If you have a webserver with PHP I'd suggest MySqlDumper

It supports:

  • Automatic backups
  • Emails backups
  • Compresses backups
  • Rotates backups
  • etc.
like image 32
nathan kelly Avatar answered Oct 27 '22 00:10

nathan kelly