Skip to content

Configure a client side backup of the repository

hamstar edited this page Nov 6, 2012 · 1 revision

Back to User documentation

Due to the nature of git you can set up a client side backup of the git repository. This should go into it's own folder however because it will obliterate local changes.

Linux

This shows how you can pull down the contents of the Braincase repo hourly.

  1. Clone the repository to a folder called /home/james/bc.repo.backup
  2. From a shell do crontab -e to edit your crontab
  3. Enter in the line 0 * * * * cd /home/james/bc.repo.backup && git pull origin +master

Windows

Dunno... something to do with Scheduled Tasks?

Clone this wiki locally