Re: Restoring corrupt revision

2010-04-22 Thread vishwajeet singh
On Thu, Apr 22, 2010 at 12:35 PM, Srilakshmanan, Lakshman <
lakshman.srilakshma...@police.vic.gov.au> wrote:

>  Hi All,
>
> 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.

>
>



-- 
Vishwajeet Singh
+91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com
Twitter: http://twitter.com/vishwajeets | LinkedIn:
http://www.linkedin.com/in/singhvishwajeet


RE: Restoring corrupt revision

2010-04-22 Thread Cooke, Mark
>> 
>> 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?

~ mark c


Re: Restoring corrupt revision

2010-04-22 Thread vishwajeet singh
On Thu, Apr 22, 2010 at 12:49 PM, Cooke, Mark 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 | dextrou...@gmail.com | http://bootstraptoday.com
Twitter: http://twitter.com/vishwajeets | LinkedIn:
http://www.linkedin.com/in/singhvishwajeet


Re: Restoring corrupt revision

2010-04-22 Thread Stephen Connolly
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  wrote:

>
>
> On Thu, Apr 22, 2010 at 12:49 PM, Cooke, Mark 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 | dextrou...@gmail.com | http://bootstraptoday.com
> Twitter: http://twitter.com/vishwajeets | LinkedIn:
> http://www.linkedin.com/in/singhvishwajeet
>