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

Re: Subversion repository maintenance

From: Andrey Repin <anrdaemon_at_freemail.ru>
Date: Thu, 24 Dec 2009 06:17:23 +0300

Greetings, Nirmalya Lahiri!

> I have used subversion in my company for version management. We maintain
> our own server for that purpose. Yesterday I have faced a typical problem.
> Somehow the last 2 (two) revision of that repository was corrupted after one
> of our team member committed his work, and the repository was locked after
> then. No one was able to "update","commit","checkout" from those two
> revision after then.

What the error message was?

> On that situation, I have decided to remove those two revision from
> repository. But I was not able to do so. After searching net, I found only
> one solution, the steps are....

> 1) Take a back of repository (except those corrupted revision).
> 2) Recreate repository.
> 3) Restore repository from backup.

Did you mean to dump repository up to the latest working revision?
Or how specifically you managed to solve it?
(nvm, it is, you mentioned it later in the post)

> My problem was solved by these steps. But my question is, if a revision in
> the middle of the repository may corrupt, then how can I remove that
> revision from repository? Because in "svnadmin dump"
> command I can specify only one range of revision number ; not multiple. Take
> an example..

svnadmin dump can create incremental diff, so you can dump the beginning, then
the ending, skipping that in the middle, then join it in single repository.
At least, that the idea.

> List of revision in repository....

> 1..2..3..4..5..............75..76..77................135..136..137

> In my case only 136 and 137 revision was corrupted. I have used the command
> "svnadmin dump -r 1:135" to take backup. But in some case if 76 revision
> will corrupt then how can I take backup of two range (1-75 and 77-137). And
> also how can I restore them?

I think I have answered your question. Hope you can find more info in
documentation by yourself. May be also worth looking into http://svnbook.org -
there could be more info too.

--
WBR,
 Andrey Repin (anrdaemon_at_freemail.ru) 24.12.2009, <6:12>
Sorry for my terrible english...
Received on 2009-12-24 04:20:44 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.