You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Dave Morris <dm...@faam.net> on 2006/12/21 18:59:08 UTC

Restore repo from original directory or working copy?

Hello all!

I did a really stupid thing.  My repository resided on a FC2 system  
and I wanted to upgrade the OS.  I copied relevant directories over to  
another server.  I performed a "svnadmin dump," but I got interrupted  
and apparently failed to copy the dump file to the other server.

I subsequently proceeded to repartition and format the old server and  
upgrade to CentOS 4.3.  Only then did I realize my mistake.

I have the original repository directory intact and a good working  
copy.  I am the only developer, so I do not have to be concerned with  
multiple working copies.  Is there a (relatively) easy way to restore  
my repository directory on the new server  maintaining all the  
history?  Or can I recreate the repository from my working copy,  
again, maintaining the history?

The alternative is to try to retrieve the dumpfile from the deleted  
partitions.  If none of the above is possible/successful, should I  
delete the .svn directories from my working copy before importing it  
into a new repository?

In case it's relevant, one of the projects is a MS Access database and  
therefore binary.

Thanks in advance!

David Morris

**************************************************************************
First Alliance Asset Management is not responsible for any  
recommendation, solicitation, offer or agreement or any information  
about any transaction, customer account or account activity contained  
in this communication. This e-mail transmission contains confidential  
information intended only for the person(s) named.  Any use,  
distribution, copying or disclosure by any other person is strictly  
prohibited.  If you received this transmission in error, please notify  
the sender and destroy this message.
                             **** WARNING! ****
All email sent to this address will be received or otherwise recorded  
by the First Alliance Asset Management, Inc. e-mail system and is  
subject to archival, monitoring or review by, and/or disclosure to,  
someone other than the recipient.
**************************************************************************

-- 
This message has been scanned for viruses and
dangerous content by OpenProtect(http://www.openprotect.com), and is
believed to be clean.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Restore repo from original directory or working copy?

Posted by Dave Morris <dm...@faam.net>.
Thank you for that!  I'm not sure what version of subversion I was  
previously running or how to find out (or if it matters).  I also  
don't know whether it was a BDB repository or not!

The output after following the instruction from the link was:

[root@localhost db] od -j12 -N8 -tx4 log.0000007153
0000014 00040988 00000008
0000024

Now, those instructions refer to the FIRST integer being the magic  
number 0x00040988, but as you can see, it actually shows up as the  
SECOND integer in my output.  So, I'm not sure what that means.  If I  
disregard the position of the output, I can easily conclude that I was  
running BDB v.4.2 and have confirmed that it is installed on the new  
server.  Does the version of Subversion matter?

Thanks for you patience with me!

Dave

Quoting Eric Hanchrow <of...@blarg.net>:

>>>>>> "Ryan" == Ryan Schmidt <su...@ryandesign.com> writes:
>
>     Ryan> If it's a BDB repository, you'd need to additionally make
>     Ryan> sure you have the same version of BDB on the new system that
>     Ryan> you had on the old system.
>
> And here's how to figure out what version of BDB the repository uses:
>
> http://subversion.tigris.org/faq.html#divining-bdb-version
>
> --
> Keaton, Chaplin, Garbo - let them now make room for Gromit.
>         A. O. Scott, in The New York Times
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
> --
> This message has been scanned for viruses and
> dangerous content by OpenProtect(http://www.openprotect.com), and is
> believed to be clean.
>
>



**************************************************************************
First Alliance Asset Management is not responsible for any  
recommendation, solicitation, offer or agreement or any information  
about any transaction, customer account or account activity contained  
in this communication. This e-mail transmission contains confidential  
information intended only for the person(s) named.  Any use,  
distribution, copying or disclosure by any other person is strictly  
prohibited.  If you received this transmission in error, please notify  
the sender and destroy this message.
                             **** WARNING! ****
All email sent to this address will be received or otherwise recorded  
by the First Alliance Asset Management, Inc. e-mail system and is  
subject to archival, monitoring or review by, and/or disclosure to,  
someone other than the recipient.
**************************************************************************

-- 
This message has been scanned for viruses and
dangerous content by OpenProtect(http://www.openprotect.com), and is
believed to be clean.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Restore repo from original directory or working copy?

Posted by Eric Hanchrow <of...@blarg.net>.
>>>>> "Ryan" == Ryan Schmidt <su...@ryandesign.com> writes:

    Ryan> If it's a BDB repository, you'd need to additionally make
    Ryan> sure you have the same version of BDB on the new system that
    Ryan> you had on the old system.  

And here's how to figure out what version of BDB the repository uses:
                                      
http://subversion.tigris.org/faq.html#divining-bdb-version

-- 
Keaton, Chaplin, Garbo - let them now make room for Gromit.
        A. O. Scott, in The New York Times

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Restore repo from original directory or working copy?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Dec 21, 2006, at 12:59, Dave Morris wrote:

> I did a really stupid thing.  My repository resided on a FC2 system  
> and I wanted to upgrade the OS.  I copied relevant directories over  
> to another server.  I performed a "svnadmin dump," but I got  
> interrupted and apparently failed to copy the dump file to the  
> other server.
>
> I subsequently proceeded to repartition and format the old server  
> and upgrade to CentOS 4.3.  Only then did I realize my mistake.
>
> I have the original repository directory intact and a good working  
> copy.  I am the only developer, so I do not have to be concerned  
> with multiple working copies.  Is there a (relatively) easy way to  
> restore my repository directory on the new server  maintaining all  
> the history?  Or can I recreate the repository from my working  
> copy, again, maintaining the history?
>
> The alternative is to try to retrieve the dumpfile from the deleted  
> partitions.  If none of the above is possible/successful, should I  
> delete the .svn directories from my working copy before importing  
> it into a new repository?

Your working copy does not contain any history, so it won't help you.  
But if you have the entire old repository, then that's much more  
promising. If it's an FSFS repository, you should just be able to use  
that. If it's a BDB repository, you'd need to additionally make sure  
you have the same version of BDB on the new system that you had on  
the old system. If you need to upgrade to a newer version of BDB,  
there are instructions on how to do that.


-- 

To reply to the mailing list, please use your mailer's Reply To All  
function


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org