largefiles vs bundles

Dirk Heinrichs dhs at recommind.com
Mon Aug 19 05:49:35 UTC 2013


Am 19.08.2013 02:11, schrieb Marcin Wiśnicki:
> What is then the proper way to incrementally backup remote repository
> with largefiles enabled ?
>
> I thought about copying/rsyncing .hg/largefiles from local clone but I
> don't know how to fetch all largefiles. There is a "--all-largefiles"
> for 'clone' but I don't see a way to do it incrementally (with pull).
Rsync is a good idea, or better: an rsync based backup tool like
rsnapshot. Anyway, regardless of the backup tool, I'd first make sure my
repositories are located on proper storage (logical volume, etc.), so
that you can take a filesystem snapshot before starting the backup. This
is to ensure consistency of the backup. So the procedure would be:

1) Stop server process (Apache, mercurial-server, whatever)
2) Take FS snapshot (should take only a couple of seconds)
3) Start server process
4) Take backup from snapshot
5) Delete snapshot (or leave it in place for faster recovery, deleting
should then be next days step 0) )

HTH...

Dirk
-- 

*Dirk Heinrichs*, Senior Systems Engineer, Infrastructure
*Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
*Tel*: +49 2226 1596666 1149
*Email*: dhs at recommind.com <mailto:dhs at recommind.com>
*Skype*: dirk.heinrichs.recommind
www.recommind.com <http://www.recommind.com>


http://www.recommind.com



More information about the Mercurial mailing list