0

I'm a Windows user but I've been asked to write a script that runs on Linux that does automatic backup for the MySQL database. I know how to do the backup (using mysqldump) but I don't know how to write a script in Linux and how to schedule it to run daily. How can it be done ?

1 Answer 1

2

Just a shell script? Bash should be easy enough for that:

http://www.gnu.org/software/bash/manual/bashref.html

http://tldp.org/LDP/abs/html/

As for the scheduling, you'll want to use cron:

http://en.wikipedia.org/wiki/Cron

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.