Header Ad

Wednesday, 7 December 2016

SVN migration

How to migration the subversion repository to another server.

In this article shared the subversion (SVN) repository movement and complete migration
one server to another server  with revision and his history! follow the below steps to done.

Easy steps to achieved the SVN migration.

1.  Backup

2.  Create

3.  Import


Step 1: Backup

Dump your current repositories.

# svnadmin dump /path/to/repository > svn_repo_name.dump

Full dump with all the revisions when we take this its quite large to compare repository dump.

# svnadmin dump /home/svn > mysvn_repo.dump


Step 2: Create

Create an empty repository using following command.

# svnadmin create /path/to/repostitory


Step 3: Import

Copy dump file from old svn server to new server. then start the import process our old repository in to the new repository. using following command.

# svnadmin load /path/to/repository < svn_repo_name.dump


Tip:

Need existing settings we need to did with same UUID for the new repository as the old repository
before import using below command to load.

# svn admin load --force-uuid /home/svn/newsvn < mysvn_repo.dump




No comments:

Post a Comment