Is it possible to automatically backup my database to dropbox? If so how can I do it?
The key criteria I need it to do is:
- Be automatic.
- Be Mac compliant.
- Be weekly.
- Sync with dropbox (http://www.dropbox.com) automatically.
- Be able to backup several databases from several websites.
- Be free… or relatively cheap!
- Have a guide on how to setup the solution.
UPDATE:
I’ve managed to setup an auto weekly backup using a cronjob:
mysqldump -u username -pMyPassword Mydatabase > backup-file.sql
That is saving the backup to my hosting space. It’s a start but isn’t ideal, how can I save that backup to a folder on my computer? Automatically of course.
What do you mean “mac-compliant”? If you want to run it on the mac (or linux), you should just make a weekly cronjob that runs
mysqldumpand stores output into your dropbox directory. The latter would require installing the dropbox daemon.