Mirror a git repository by pulling?
Posted
by corydoras
on Stack Overflow
See other posts from Stack Overflow
or by corydoras
Published on 2010-05-03T07:43:49Z
Indexed on
2010/05/03
7:48 UTC
Read the original article
Hit count: 343
I am wondering if there is an easy way, ie like a simple cron job, to regularly pull from a remote git repository to a local read only mirror for backup purposes?
Ideally it would pull all branches and tags, but the master/trunk/head would be sufficient.
I just need a way to make sure that if the master git server dies, we have a backup location that we could manually fail over to.
(I have been googling and reading documentation for help on how to do this for quite some time now and the furthest I have gotten is a bash script that does pull's on a regular interval.)
© Stack Overflow or respective owner