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

Re: Restore repo from original directory or working copy?

From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-12-21 20:12:42 CET

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  
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 21 20:15:54 2006

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.