How to Migrate a Subversion Repository
December 11th, 2007 by Benjamin Wagaman.Categorized as how to, programming.
While moving a subversion repository from one location to another is an infrequent task, it’s good to know and easy to do.
According to dot not
svnadmin dump /path/to/repo > reponame.dump
tar zcf reponame.tgz reponame.dump
scp reponame.tgz hostname:/path/to/new/repo
Then login to the new machine, and set up the new repo:
cd /path/to/new
svnadmin create reponame
tar zxf reponame.tgz
svnadmin load reponame < reponame.dump
Voila, you have moved your repository. Don’t forget to delete your old repository when you have made sure that you are correctly referencing your new repository. Thanks Scott for the help.
RSS Feed