-
Notifications
You must be signed in to change notification settings - Fork 1
Configure a client side backup of the repository
hamstar edited this page Nov 6, 2012
·
1 revision
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.
This shows how you can pull down the contents of the Braincase repo hourly.
- Clone the repository to a folder called /home/james/bc.repo.backup
- From a shell do
crontab -e
to edit your crontab - Enter in the line
0 * * * * cd /home/james/bc.repo.backup && git pull origin +master
Dunno... something to do with Scheduled Tasks?