[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: Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
Date: Mon, 08 Dec 2008 11:37:04 -0800

Ben Madin wrote:
> G'day all,
>
> I have suffered a catastrophic failure of the old (2001) freebsd box
> on which my PhD thesis repository was served from.

Condolences on the loss of your data.

> 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 traveling, 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
> accidentally 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.
>
> Any help would be really appreciated.

I think you're looking for 'svn export', which will strip the .svn directories
from the source and put a copy of the contents in another locations.

Btw, if you were to try using 'rm -r', I'd suggest creating a backup of the
working copy first.

-Hyrum

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].

Received on 2008-12-08 20:38:13 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.