backing up my repositories, anything special needed?

Matt Mackall mpm at selenic.com
Sat Aug 11 11:17:06 CDT 2007


On Sat, Aug 11, 2007 at 11:07:44AM +0200, Gábor Farkas wrote:
> Matt Mackall wrote:
> > On Fri, Aug 10, 2007 at 11:28:07PM +0200, Gábor Farkas wrote:
> >> hi,
> >>
> >> i create daily backups of my important files (well, not yet, but working
> >> on it :), which include also my mercurial repositories...
> >>
> >> is it enough to simply backup the directory which contains the repositories?
> >>
> >> for example, what happens if someone is pushing to a repository at the
> >> same time when it's backed up?
> >>
> >> will that be ok?
> > 
> > There is a potential race here, but it's not serious.
> 
> what is the worst that can happen?

There will be a partial commit in progress during the backup. The repo
will contain part of the commit and won't pass verify. Doing a pull of
the last good revision will repair it.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list