Mercurial maintaining redundant repositories
Arne Babenhauserheide
arne_bab at web.de
Wed Oct 17 00:29:37 UTC 2012
Hi Praveen,
At Tue, 16 Oct 2012 01:21:09 -0700 (PDT),
praveen_m86 wrote:
> I would like to have multiple redundant copies of the repositories to add
> reliability to my system, for e.g If one remote repository goes down, users
> should be able to deliver their changes to another remote mirror of the
> repository without any problems.
You could just have two repositories at two websites.
I normally use a local backup repo for that which has a simple hook:
.hg/hgrc
[hooks]
changegroup.push1 = hg push -f <default-repo>
changegroup.push2 = hg push -f <backup-repo>
When I publish code, I just push to the local backup repo, the hooks
fire and the code is pushed to both remote repos automatically. Don't
overdo this, though: in a more complex setup I use here I run into
locking problems now and then.
Best wishes,
Arne
More information about the Mercurial
mailing list