[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: Dextrous <dextrous85_at_gmail.com>
Date: Tue, 9 Dec 2008 01:03:53 +0530

You can check svn export

export: Create an unversioned copy of a tree.
usage: 1. export [-r REV] URL[@PEGREV] [PATH]
       2. export [-r REV] PATH1[@PEGREV] [PATH2]

  1. Exports a clean directory tree from the repository specified by
     URL, at revision REV if it is given, otherwise at HEAD, into
     PATH. If PATH is omitted, the last component of the URL is used
     for the local directory name.

  2. Exports a clean directory tree from the working copy specified by
     PATH1, at revision REV if it is given, otherwise at WORKING, into
     PATH2. If PATH2 is omitted, the last component of the PATH1 is used
     for the local directory name. If REV is not specified, all local
     changes will be preserved. Files not under version control will
     not be copied.

On Mon, Dec 8, 2008 at 6:27 PM, Ben Madin <ben_at_remoteinformation.com.au>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.
>
> 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.
>
> Any help would be really appreciated.
>
> cheers
>
> Ben
>
>
> --
>
> Ben Madin
> REMOTE INFORMATION
>
> t : +61 8 9192 5455
> f : +61 8 9192 5535
> m : 0448 887 220
> Broome WA 6725
>
> ben_at_remoteinformation.com.au
>
>
>
> Out here, it pays to
> know...
>
> ------------------------------------------------------
>
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=981131
>
> To unsubscribe from this discussion, e-mail: [
> users-unsubscribe_at_subversion.tigris.org].
>

-- 
Cheers,
Vishwajeet
http://www.singhvishwajeet.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=981262
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-08 20:35:48 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.