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
Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.
Did you find this tutorial helpful? Then please be generous and support Xmodulo!
Latest posts by Dan Nanni (see all)
- How to install Suricata intrusion detection system on Linux - September 3, 2015
- How to switch from NetworkManager to systemd-networkd on Linux - August 31, 2015
- How to set up a system status page of your infrastructure - August 25, 2015