Moving Subversion Repositories to Another Server/Location

First, dump the repository:

# svnadmin dump /path/to/your-repository-name > your-repository-name.repo

Create your new repository (if you haven't already):

svnadmin create your-new-repository-name

Then, load it into the new repository:

svnadmin load your-new-repository-name < your-repository-name.repo

Then, in your checked out code directory, change the repository location to point to the new location:

svn switch --relocate /path/to/old-repository /path/to/new-repository
sysadmin_movingsubversionrepositories.txt · Last modified: 2013/01/21 12:44 (external edit)