Migrate svn repository from local copy

Tips No Comments »

Soooo…

I am migrating my former google project to assembla. The main problem was that i could not find through the google admin a way of exporting my repository. After a bit of searching i realized i have to migrate my repository from a local copy. So the steps are:

1. install svk

sudo apt-get install swk

2. create a local copy of the project

svk ls <https://project.svn.url.here>

this step will create in your ~/.svk/local a copy of the repository

in the step where svk asks you for the depot path, choose the folder name you want to import the project into for the new repository

Depot path: [//mirror/svn] //<project-name>

3. now you can create a dump file from the local repository copy for project

svnadmin dump ~/.svk/local > <project-name>.dump

You can now use the resulting dump file to import it in the new location or use it as backup.

© Radu Baranga 2008
Entries RSS Comments RSS Log in