In this article, I will mention about moving a subversion repository from one server to another. Actually, it is a backup and restore job by using svndump command.
- Backup your old Repository
Firstly, backup your old repository by using below command.
svnadmin dump /path/to/repository > repo_name.svn_dump
The dump file contains all the revisions you have ever made to your svn repository.
- Create the new Repository
Create new SVN server on a different server and create a new empty repository.
svnadmin create /path/to/repository
- Import your old repository into the new one
Run below command:
svnadmin load /path/to/repository < repo_name.svn_dump
Now, out new SVN repository is ready on a different SVN server.