I have a website which is monitored by an svn server. I need this checked out code (the website), to be backed up using rsync.
Code wise nothing really changes until we do an svn update on the site which is usually twice a month. However on a daily basis there are database changes and new images are uploaded to the site.
I need a script that exports the database and then uses rsync to backup the code as well as the database dump to a secondary server.
This script will be run once a day.
The goal of this script will be, if there is ever a disaster, i can just copy the files from my secondary server back to the primary server and still be able to do svn updates to the code.