I had to move an SVN repository for one of my projects from one hosting account to another today. I don’t know much about handling SVN and it took me a bit of searching before I was able to do it, so i’ve written the steps here for anyone else who might be in the same situation. You need to have SSH access on both servers to do this.

Go to ~/svn/ or wherever you have your SVN repos and dump the repo using the svnadmin dump command:

$ svnadmin dump myproject > myproject.dump
  Dumping revision 0
  Dumping revision 1
  ...
  Dumping revision 46

You now have the dump of the repo, which you can upload to the other server where you want to import the repository. Now, in the svn folder of that serer, do this:

$ mkdir myproject
$ svnadmin create myproject
$ svnadmin load myproject < myproject.dump

Importing the repository like this keeps all the revisions intact and you can continue using the repository at the new server.