[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Restoring from old backup

From: Stefan Sperling <stsp_at_elego.de>
Date: Tue, 14 Dec 2010 17:12:56 +0100

On Tue, Dec 14, 2010 at 04:35:59PM +0100, Thorsten Schöning wrote:
> Guten Tag Mauro Condarelli,
> am Dienstag, 14. Dezember 2010 um 15:34 schrieben Sie:
>
> > I would rather not checkout a fresh copy, move all changes to it and
> > submit that, if possible, because it is too error-prone.
>
> Some weeks ago I had the same situation, two times within one week,
> and I didn't find any other suitable solution.

The best approach is to be prepared and use a good backup strategy.

From the post-commit hook, create an incremental dump file of every revision.
You can do this with svnadmin dump --deltas --incremental -r $REV.
This gives you nearly instant backup of every commit that made it into
the repository. Incremental dump files can be large if a large tree is
added, but in general they don't use much space.

After restoring the last full backup of the repository, load missing
revisions from the incremental dump files generated since the last
full backup was made.

You can either get rid of incremental dump files dated before the
last full backup, or keep them around in case you'll need them some day.
Having multiple backups of your data in different representations
doesn't hurt.

Stefan
Received on 2010-12-14 17:14:08 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.