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

Re: Restoring corrupt revision

From: Stephen Connolly <stephen.alan.connolly_at_gmail.com>
Date: Thu, 22 Apr 2010 09:36:40 +0100

The clean way would be to do a dump of your repo from after the dirty
revision.

Do a dump up to and including the dirty revision from your known good copy

do a load of the clean dump + the live dump

On 22 April 2010 08:30, vishwajeet singh <dextrous85_at_gmail.com> wrote:

>
>
> On Thu, Apr 22, 2010 at 12:49 PM, Cooke, Mark <mark.cooke_at_siemens.com>wrote:
>
>> >>
>> >> I have identified a single corrupt revision in the repository.
>> >>
>> >> Is restoring that ** specific ** revision from a tape
>> >> backup a reasonable approach or is it a hack and could cause
>> >> further problems down the track.
>> >>
>> > I don't see any other option than this either, even if this
>> > is hack, I have done similar thing for one of our
>> > repositories and haven't faced any problem in future, so
>> > even if this is hack I don't see any problem with the approach.
>> >
>> Out of interest, how can you restore a single revision into a repo? I
>> am assuming reasonably clever use of dump and restore? Including from a
>> recovered version of the repo on a spare svn server? Or is there a
>> quicker/easier way?
>>
>>
> There is quicker and wicked way to do it at least the way I did it, I am
> not sure if the approach was right or wrong but this will only work if you
> have backup of repository at some point which is not corrupted just go to
> the db directory of repository copy that revision and past it in your
> corrupted repository but as I said this is hack and not a clean approach but
> worked for me, I am not recommending it to anyone to try it at your own
> risk, that was a last resort for me and worked.
>
> Regards,
>
> Vishwajeet Singh
> +91-9657702154 | dextrous85@gmail.com | http://bootstraptoday.com
> Twitter: http://twitter.com/vishwajeets | LinkedIn:
> http://www.linkedin.com/in/singhvishwajeet
>
Received on 2010-04-22 10:37:16 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.