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

Re: Restore repository from working copy

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Mon, 8 Dec 2008 21:16:35 -0600

On Dec 8, 2008, at 06:57, Ben Madin wrote:

> I have suffered a catastrophic failure of the old (2001) freebsd box
> on which my PhD thesis repository was served from.
>
> Although I am obviously an idiot for not adequately backing up the
> repository, the reality was it was for my own benefit, and more of a
> convenient backup system, especially when travelling, so I'm happy to
> live with the loss of the versioning history.
>
> But now I have set up a new (only 3 year old) box, with a shiny new
> hard drive and UPS, and want to populate it again from my working
> copy.
>
> However the working copy is full of .svn directories etc, and I was
> wondering if there is any way to import it without causing confusion.
>
> As it is (now) the only copy, I am reluctant to do a rm -r sweep
> through it to try to remove all the .svn directories, in case I
> accidently get everything.
>
> Is there any alternatives for importing checked out copy. I have been
> through the book and the faq's, and looking the archive with little
> success, but I'm not sure that I haven't missed a key word.

"svn import" ignores the .svn directories. So you can safely create a
new empty repository with "svnadmin create" and import your working
copy into it with "svn import". The .svn directories will not be
imported. Then you can check out from the new repository to a new
location on your hard drive and verify everything looks ok.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=981451

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-09 04:17:37 CET

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.