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

Re: file already exists error during svnadmin load

From: Brian Larkin <blarkin_at_gmail.com>
Date: Wed, 13 May 2009 06:45:10 -0500

>>
>> Stephen,
>>
>> Thanks for the quick reply.  I dug around through the file and it does
>> indeed appear to be interwoven as you suggested.  I'm at a loss to
>> describe how it happened.  Obviously one of the scripts I was using to
>> back up the system did something strange.  Any idea on how to salvage
>> this repository?
>
> That depends, can you run your dump file through grep, e.g.
>
> fgrep "Revision-number: " mydumpfile.svndump
>
> if you see two Revision-number: nnn lines for every revision nnn then you
> are fecked... you must have ran two dumps in parallel and they both were
> appending to the same file at the same time.
>
> if you only see one Revision-number: nnn for each revision, then you should
> be able to skip the first few bytes until you reach the second header.
>

Stephen,

I ran the grep you suggested:

fgrep -n -a -C 1 "Revision-number:" svn.dump

and, as you say, it looks like I'm fecked.

--
5902534-
5902535:Revision-number: 60
5902536-Prop-content-length: 125
--
5902552-
5902553:Revision-number: 60
5902554-Prop-content-length: 125
--
5902588-
5902589:Revision-number: 61
5902590-Prop-content-length: 125
--
5902606-
5902607:Revision-number: 61
5902608-Prop-content-length: 125
So I'm looking at trying to recover this data.  My plan right now is
to write a script to dig through the dump and write out the most
recent revision of a file.  Do you know if anyone has ever had to do
this or been successful doing it?
When I set all of this up I ran a backup & restore scenario to make
sure it all worked.  I guess this is a lesson for me.  Testing things
once isn't enough - you need to retest your backup procedures
periodically.
Thanks,
Brian
> -Stephen
>
>>
>> Thanks,
>> Brian
>>
>> On Mon, May 4, 2009 at 5:24 AM, Stephen Connolly
>> <stephen.alan.connolly_at_gmail.com> wrote:
>> > Looks like the first 4 lines are duplicated
>> >
>>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2235775
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-13 13:46:46 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.