0

I want to use a repository I already have in my PC on C:\myLameRepo (which I access using file:///c:/myLameRepo/LameProj/trunk/) to a remote server on where I plan to configure using svn or http, but I want to preserve the "whole history" of the projects I already have (logs, comments, etc.).

I've read some questions already here and here, but they were not helpful.

Community
  • 1
  • 1
ulitosCoder
  • 1,919
  • 1
  • 17
  • 22
  • I wanted to post or search this question on ServerFault and I found [this](http://serverfault.com/questions/315301/svn-creating-a-repo-from-existing-repos-directory), the question was closed – ulitosCoder Aug 28 '13 at 17:37

1 Answers1

1

You probably want to do:

svnadmin dump /path/to/local/repo | svnrdump load http://svn.example.com/svn/repo

Assuming that you're starting with a fresh repo on the remote server side.

Before you can run the above you'll also need to create the repo on the remote side with:

svnadmin create /path/to/repo

You'll also need to configure access but there's a ton of information available on how to do that.

Alternatively, if you just want to move the repo you can probably just move the whole repo with whatever file transfer tools you prefer. If you're using a BDB based repo locally (doubtful unless it's really old) then I wouldn't recommend that.

Ben Reser
  • 5,695
  • 1
  • 21
  • 29
  • AFAICR, `svnrdump load...` require some hook also in remote side – Lazy Badger Aug 24 '13 at 06:38
  • Well, I copied the repo directory with `scp`, it worked perfectly and was pretty straight forward, silly Me, thanks a lot!!! – ulitosCoder Aug 26 '13 at 19:38
  • @LazyBadger Yup, I forgot to mention that. If you use the svnrdump load you'd need to allow the user you're using to load the dump to set revision properties by setting up an appropriate pre-prevprop-change hook. – Ben Reser Aug 26 '13 at 20:59