First create a mirror with
git clone --mirror [email protected]:repo.git
then setup a cron job like this:
*/1 * * * * gitbackup cd /backup/repo.git && git fetch -q
This will backup the changesets every minute. Maybe you want to do this less frequently.
Refer to http://stackoverflow.com/questions/2756747/mirror-a-git-repository-by-pulling