backing up my repositories, anything special needed?

Matt Mackall mpm at selenic.com
Fri Aug 10 20:54:31 CDT 2007


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.

> p.s: if i have the repositories on a filesystem that can create atomic
> snapshots(like zfs), then is it safe to simply create a snapshot of the
> repository-directory, and then back it up?

Yes!

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list