Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do I create a dump file from my subversion hosting account?

Tags:

svn

I have my SVN repository hosted somewhere. I want to move to somebody else. How can I create a dump of my repository so I can import it into my new host? This is all I keep seeing: svnadmin dump /path/to/repos > repos.dump

My repository is hosted, so it's not local.

like image 336
ScottG Avatar asked Dec 10 '08 03:12

ScottG


People also ask

How do I export and import SVN repository?

In the main menu, select VCS | Browse VCS Repository | Browse Subversion Repository to open the SVN Repositories tool window. Right-click a directory you want to export and choose Export from the context menu. In the Select Path dialog that opens, specify the destination directory and click OK.

What does SVN dump do?

The dump file contains all the revisions you have ever made to your svn repository, so it will probably be quite large (it even includes files you may have deleted in a previous revision).


2 Answers

You can also use svnsync to create a copy of your repository.

This requires adding a pre-revprop-change hook on the destination repository (and requires a Subversion 1.4 or newer repository at your hosting provider).

After you svnsync'ed your repository to a system you manage, you can use svnadmin to dump the local copy if you need a dumpfile (or just use the synced to repository).

[Update in 2011:] Since Subversion 1.7 there is a tool called svnrdump which you can use to create a dump file from a remote repository in a single step.

like image 148
Bert Huijben Avatar answered Oct 06 '22 00:10

Bert Huijben


svnadmin dump is the recommended way to migrating your repositories, but you'll need shell access to do it, otherwise you will have to contact your hosting provider and ask them to do the full repository dump for you.

like image 29
Christian C. Salvadó Avatar answered Oct 05 '22 23:10

Christian C. Salvadó