Carlosinfl
Loves the juice
- Joined
- Sep 25, 2002
- Messages
- 6,633
I have a MySQL server that has about 4 very important but relatively small (by today's standards) databases. They all run on CentOS 5 Linux and would like to know if anyone has a recommended simple script / procedure for doing a nightly or weekly backup on the 4 databases? I generally do a MySQL dump manually on Friday evening before I leave for the day and I realize there has to be a much better way to go about this from a professional stand point.
Here are the commands I run every week but would like to automate somehow and perhaps move to nightly:
Here are the commands I run every week but would like to automate somehow and perhaps move to nightly:
Code:
mysqldump -u root -p mysql > mysql.sql
mysqldump -u root -p cal > mrbs.sql
mysqldump -u root -p webmail > webmail.sql
mysqldump -u root -p wiki > wiki.sql