We have 500 plus Hg repositories and am looking for a quick and efficient want of backup. Is there a script or Tool that we can use to backup these repositories. We tried Hg bundle, hg clone and regular file system backup but they are not helping.
Is there a standard practice, or some documentation for Hg repositories backup policy?
A follow-up question, what will happen when a user is in a middle of pushing the changeset and we start the backup ?
We do use RhodeCode to publish the Hg repositories. Thanks
There's no standard. A true FS-level snapshot taken during a push will be fine, but a non-instantaneous mirroring operation (recursive copy) could end up with a corrupt repo, though it would be repairable to the pre-push state.
In the past I've done something as simple as:
That pushes all repos to a remote ssh server, incrementally, with full updating-while-pushing integrity, creating them if necessary.