If you're already using SVN at another site, and wish to move your repository here, you simply need to generate a dump of it, and then import it. Otherwise, you might have to convert it from one SCM system to another supported here.

Conversion to Subversion

There are several conversion tools for various revision-control systems such as CVS, and they can convert a repository automatically with various degrees of success or completeness. See How do I convert an existing CVS repository into a Subversion repository?

Importing your Subversion repository

Once you have converted your repository to SVN, or if you're already using SVN, you're ready to take a dump of it. If your repository is at /var/svn/mysvnrepo, you can use the svnadmin command to generate a dump of it:

svnadmin dump /var/svn/mysvnrepo

This actually just prints the dump to the screen, so you probably want to redirect it to a file. In most shells, you can write something like:

svnadmin dump /var/svn/mysvnrepo > mysvnrepo.dump

Dump files usually compress quite well, so you might compress the file after dumping or, if your shell supports it, compress while making the dump:

svnadmin dump /var/svn/mysvnrepo | gzip -9 > mysvnrepo.dump.gz

Provide management with the dump, and indicate which repository you want it loaded into.

Related pages


Lancaster University
© School of Computing and Communications, Lancaster University – Disclaimer & copyright
Some images from PixelMixer