Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 864
Marco Demaio Avatar asked Apr 18 '10 11:04

Marco Demaio


People also ask

Which migration is actually recommended for migration from SVN to Git?

When moving to Git from another version control system like Subversion (SVN), we generally recommend that you perform a "tip migration", which migrates just the latest version of the repository contents, without including history.


3 Answers

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.

like image 166
Tomas Andrle Avatar answered Oct 12 '22 00:10

Tomas Andrle


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.

like image 22
Michael Aaron Safyan Avatar answered Oct 12 '22 00:10

Michael Aaron Safyan


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

like image 30
Francesco Meloni Avatar answered Oct 12 '22 00:10

Francesco Meloni