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

Re: Recovering repository with multiple missing rev/ files

From: Stefan Sperling <stsp_at_elego.de>
Date: Tue, 15 Jun 2010 17:31:51 +0200

On Tue, Jun 15, 2010 at 11:09:39AM -0400, Eiren Smith wrote:
> Dear SVNers,
>
> I'm trying to recover an SVN repository after a hard drive failure.
> From 7,797 revisions, we lost the following seven (7) files from the
> .../repo_dir/db/revs/7/ directory:
>
> 7437 (7-9 Dec 2009) (file also missing from revprops/ dir)
>
> 7461 (16 Dec 2009)
>
> 7519 (8 Jan 2010)
> 7520 (8 Jan 2010)
> 7521 (8 Jan 2010)
>
> 7679 (19 Mar 2010)
>
> 7683 (19 Mar 2010)
>
> This single SVN repository contains many different software
> projects/products. So I would prefer to be able to rebuild my
> repository and only lose the revisions that explicitly depend on
> those seven missing revs/ files, rather than having everything stop
> at rev. 7436. Being able to recover all the way to 7797 might mean
> only five products are affected but all our other products would
> have their history fully restored, which would be excellent.
>
> Is there a way to do this?

Can you still create dumpfiles containing the revisions that
did not get lost? If so, you could stitch together a new repository
and fill in the missing revisions manually (if you still know what
happened in those revisions, or can guess what happened).

See the svnbook section on rewriting history:
http://svnbook.red-bean.com/nightly/en/svn.reposadmin.maint.html#svn.reposadmin.maint.filtering

And see the section called "REVISIONIST HISTORY" of this file:
http://svn.apache.org/repos/asf/subversion/README

> P.S. Other files may also be missing from the revprops/ dir, not
> just 7437 -- If I'm willing to lose commit messages, can I live
> without some revprops/ files?

You should recreate the revprops for all revisions.

Stefan
Received on 2010-06-15 17:32:34 CEST

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.