logo
Published on john.parnefjord.se (http://john.parnefjord.se)

Move Subversion project

By johnp
Created 2007-09-12 15:24

The other day I had to move a project from one Subversion repository to another repository on another server. The project that I had to move, I call it projectx, was a solitary project in a repository and was to be moved in to a repository housing multiple projects.

Anyway, the move was easier than I thought. I started with dumping the project on the server that I was aiming to move from.

svnadmin dump /path/to/my/repos/projectx > projectx.dump

That was fast and easy. After that I moved the dump to the target server, ie where the project will be located from now on. Now it's time to recreate the dump. This is done by sort of replaying all commits with help of the dump. Start with creating the new project on the target server:

 svnadmin create /path/to/repos/projectx

And continue with loading the dump:

svnadmin load /path/to/repos/projectx < projectx.dump

That's it. Slick and easy!


Source URL:
http://john.parnefjord.se/node/35