Migrate SVN repository from Google code to another repository server (keeping history)
Asked Answered
B

5

5

I read some question/answers here about how to do it using svnadmin/dump etc. Actually I did not understand properly what I'm supposed to do.

How do I migrate an SVN repository to another SVN repository?

I think I have to do some sort of dump from the Google code repository using svnadmin, but where do I get this svnadmin?

I use TortoiseSVN 1.6.3 on WXP and there is no svnadmin.exe command in all my C folder, where am I supposed to download these applications?

Thanks!

Behemoth answered 18/4, 2010 at 11:3 Comment(2)
https://mcmap.net/q/892109/-tortoisesvn-svnadminCinderella
@Neil: I read that question/answer too, but even the proposed links refer to pages form which is not clear what you have to download.Behemoth
S
2

from subversion 1.7 you can use svnrdump here the link to the doc:

i used: svnrdump dump https://mynameproject.googlecode.com/svn > source-repo.dump

and it works

Stoke answered 14/3, 2015 at 13:13 Comment(1)
It worked like a charm. To whom it may concern: svnrdump.exe is included in TortoiseSVN 1.9 (during installation, just check the box to install locally all svn commands). Once you get a .dump a file it's easy to import it into another SVN repository like Assembla by simply using their Import/Export online tool.Behemoth
C
4

You can use svnsync to make a 1:1 copy of a remote svn repository, including history and properties. You do not even need write access to the repository that is being copied.

Coated answered 29/6, 2010 at 16:55 Comment(2)
I don't know. You can download Windows binaries of Subversion from subversion.apache.org/packages.html#windows (the CollabNet mirror requires registration but works fine for me).Coated
@eglasius: no, not yet, I wanted to move out form Google code, but I have no time to look into this now.Behemoth
H
3

The reason you do not have svnadmin is that it is a server-side program, not a client-side program; it is used on the same machine on which the Subversion repository is hosted. You will not be able to run svnadmin without SSH'ing into the host computer. Consequently, I don't think you can copy the project repository from Google Code, since you will not be able to run "svnadmin dump" from the Google Code server computers. The best you will be able to do, AFAIK, is to use svn export and svn import, which discard history.

Hibernia answered 18/4, 2010 at 11:13 Comment(3)
@Michael You can use it client-side.Cinderella
@Neil, you can use it client side, but it won't help, since you need to specify the path to the repository on the local filesystem.Hibernia
+1 and thanks so much for clarifying me this point in 1 minute.Behemoth
S
2

from subversion 1.7 you can use svnrdump here the link to the doc:

i used: svnrdump dump https://mynameproject.googlecode.com/svn > source-repo.dump

and it works

Stoke answered 14/3, 2015 at 13:13 Comment(1)
It worked like a charm. To whom it may concern: svnrdump.exe is included in TortoiseSVN 1.9 (during installation, just check the box to install locally all svn commands). Once you get a .dump a file it's easy to import it into another SVN repository like Assembla by simply using their Import/Export online tool.Behemoth
T
0

You can actually download an svn repo history from Google code via svnsync. See this link from Google http://code.google.com/p/support/wiki/SubversionFAQ#How_do_I_download_my_Subversion_history?

Tillotson answered 25/1, 2011 at 3:40 Comment(0)
T
0

Here's a step by step explanation how to do it with svnsync.

http://blog.projectnibble.org/2011/03/25/using-svnsync-to-migrate-a-remote-svn-repository/

Tadtada answered 21/6, 2013 at 12:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.