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

Re: Rebuilding deleted SVN repository

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-06-11 15:36:32 CEST

On Jun 11, 2006, at 15:00, Upinder S. Bhalla wrote:

> I forgot to back up my SVN repository files from /opt when I
> upgraded my
> OS. The disk has been wiped and reformatted. I do have the user
> subdirectory with the current files and the local .svn subdirectory
> with
> the working revision. I realize most of my project history is history,
> but I would like to reconstruct my SVN project back to the last
> revision. What should I do?

If you didn't back up the repository, then the history is gone, so
you only have the revision that's currently checked out in your
working copy. You could import that into a new repository and start
over from there.

I believe Subversion (at least the current version, 1.3.2) will
ignore the .svn directories when importing, so you should just be
able to "svnadmin create" the repository, "svn import" your old
working copy into it, and "svn checkout" a new working copy from the
new repository and get back to work.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Jun 11 15:37:53 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.