How to export svn repository from visualsvn server to assembla in windows?

1] Go to Visual SVN installed directory. Mine is

C:\Program Files\VisualSVN Server\bin

It should contain executables like svn.exe and svnadmin.exe

2] If the path to your installed directory has a space in it (like mine above in Program Files) then you need to add the path to environment variables. If not skip to step 9

3] Go to Start->Computer (Right Click) -> Properties.

4] Then on left bar select “Advanced System Settings”.

5] In “advanced” Tab select “Environment Variables”.

6] In lower column of System variables locate a variable named Path. Select it and Click Edit.

7] WARNING: do remove any existing text from this path. Simply go to the end, add a semi-colon ; and paste the path of your VisualSVN server

; C:\Program Files\VisualSVN Server\bin

8] Click OK thrice and save the changes.

9] Now fire up VisualSVN Server (GUI).

10] In the left side bar, right click on “Visual SVN Server (Local)” and say properties.

11] Note the path of “Repositories root”.

12]Start command prompt in the “repositories root dir”.

13] Now come the magical words

svnadmin dump repo_name > repo_name.dump

(If you have not added the visualSVN folder path to environment variables, then you may need to call svnadmin along with its path. Like this,

<..path..>\VisualSVN Server\bin\svnadmin dump repo_name > repo_name.dump

)

14] A nice dump file will be created for you in the repositories root folder.

15] Create a space in assembla and import the dump file there.

Congrats!

P.S. In case the dump file is too large (>10MB) or you can’t directly upload the file to Assembla, then you need to upload the file using another service (Eg. Dropbox) and import it in assembla using its download link. One word of caution though, you need to gzip the dump file before uploading. Using windows’s default zip functionality or using WinRar didn’t work for me. I had to gzip it using a Cygwin terminal in windows.

2 thoughts on “How to export svn repository from visualsvn server to assembla in windows?

  1. I get an error message that states the file cannot be found, but when i navigate to it it is clearly there. Any idea what could be causing this?

  2. hii i have tp export svn users list from my visual svn server. All users using windows credentials but there is no way to export the same please help me regarding the same.

Leave a comment