Subversion (SVN) is a version control system, maintaining versions for files and directories. SVN uses FSFS (Fast Secure File System) as the backend storage to store revision histories.
If you would like to migrate the current subversion repository on one server onto another server, without losing all revision history, you can use svnadmin's dump command which dumps the contents of FSFS to stdout. Then you can use svnadmin's load command to load the saved dump file into a new SVN repository. Follow these steps to migrate SVN repository to a new server.
On old svn server, create a svn dump of existing svn repository.
The above command will dump all existing svn history to a dump file. If you instead would like to migrate specific svn revisions (e.g., from revision 1000 to 2000), you can generate svn dump as follows.
Now transfer the created svn.dump to a new server.
On new svn server, restore svn dump on to the server.
$ sudo svnadmin create /svnrepos
$ sudo svnadmin load /svnrepos < svn.dump
Subscribe to Xmodulo
You can have daily Linux tutorials and FAQs delivered to your email inbox. Simply enter your email address below to subscribe to our mailing list. You will receive hands-on guides and carefully written tutorials related to Linux, everything for free.