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

Re: Recover a corrupt repository

From: Jef Driesen <jefdriesen_at_hotmail.com>
Date: 2007-12-12 15:23:03 CET

Ryan Schmidt wrote:
> On Dec 12, 2007, at 04:55, Jef Driesen wrote:
>
>> I have a repository with 36 revisions. When I tried to commit the
>> 37th revision, the svn aborted with a segmentation fault. And now
>> my repository is corrupt. How do I recover it?
>>
>> It appears that the latest commit has overwritten r29, because db/
>> revprops/29 contains the commit message of that last commit. Both
>> db/revprops and db/revs contain 38 files (with numbers 0 to 37).
>> But my db/current contains "29 c 2". If I dump the repository, the
>> last revision is r29, which contains the changes of that last commit.
>
> I think you'll have to recover your db/revs/29, db/revprops/29 and db/
> current files from your backups.
>
> After that, "svnadmin verify" would be a good idea.

Unfortunately, my last backup only goes back to r28. All changes after
that are very recent and thus not yet included in the backup.

Is it possible to start from r28 and create a new r29 by making the same
change again? And then replace the corrupt files with the newly created
ones. I'm quite sure that I only created a new branch in r29 and did not
modify any other files.

svn cp file:///repo/trunk file:///repo/branches/mybranch

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 12 15:24:13 2007

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.