Webmin on Ubunu 9.10, How do I schedule a weekly backup with the MYSQL database? though webmin?

I'm running an Ubuntu Desktop 9.10 as my webserver, it has Webmin installed.

How can I:

1. Backup the entire MYSQL database to a file.
2. Backup everything including that mysql database to a backup drive I have located at:


thanks for the help!

Does backintime work with Ubuntu 9.10 and Webmin?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

1) MySQL backup
In Webmin, go to Servers -> MySQL Database Server -> Backup Databases
- Select a backup directory
- Select "Other backup options" (Bzip2, for instance, is convenient)
in "Backup Schedule":
- Scheduled backup enabled ? YES, at times chosen below...
- select "Times and dates selected below..."
for a daily backup, select:
- Minutes: selected -> 0
- Hours: selected -> 2 (for a backup starting at 02:00)
- Days: All
- Months: All
- Weekdays: All
Then click on "Save".

You can then check your crontab to see if a new line has been added:
Into SSH, type:
crontab -l

you will get a line like this:
0 2 * * * /etc/webmin/mysql/backup.pl --all

2) Copy backup files to another directory
- Create a batch file named "copysql" in /root directory, containing:

mkdir /media/Backup
cp /home/backups/mysql/* /media/Backup

- set execute rights to the newly created batch file:
sudo chmod +x /root/copysql

- edit your crontab, using the following command:
sudo crontab -e

- add the following line:
0 3 * * * /root/copysql
(so that your batch file will be run at 03:00 every day)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.