backing up my repositories, anything special needed?

Dustin Sallings dustin at spy.net
Fri Aug 10 16:49:42 CDT 2007


On Aug 10, 2007, at 14:28 , Gábor Farkas wrote:

> i create daily backups of my important files (well, not yet, but  
> working
> on it :), which include also my mercurial repositories...

	Don't back it up, just keep another copy cloned and updated  
regularly.  I've got a tool that finds all of my hg dirs and creates  
a (web-accessible) manifest, and another that pulls that down, makes  
sure I've got all of the trees and clones if I don't, and updates if  
I do.

	Using the normal development tools, you won't have to worry about  
partial updates or in-progress snapshots confusing anything.  You'll  
save tons of space (sum of all backups are never bigger than the tree  
size).  The revision control system doesn't allow you to irreversibly  
make changes, so that would never be an issue, and you're protected  
against filesystem loss, other brokenness because those types of  
things wouldn't be replicated.

	I do this at least once every hour (more when I pull out my usb  
stick or other development systems and update those trees).

-- 
Dustin Sallings





More information about the Mercurial mailing list