yes, learn about crontab - this is something you use for automating things. you can tell it to run your script [bash, php, whatever script] at certain times, like:
every monday at 7AM, everyday at 8.30PM, every 5 minutes, etc etc
in your case i would use it to run a bash script which would dump mysql data to a file and zip everything. of course you can use php script for the same thing.