Skip to main content

SVN: Creating a Repository and Migration

Submitted by amitsedai on
Creating a Repository There are loads of documentation in creating a Repository. Provided below is an example VHOST config file for SVN: ServerName svn.example.com
DocumentRoot /home/svn/

DAV svn
SVNPath /home/svn/reponame
# SVNParentPath /var/svn/
AuthType Basic
AuthName "Example Repository"
AuthUserFile /etc/subversion/passwd
Require valid-user

ErrorLog /home/svn/logs/error.log
CustomLog /home/svn/logs/access.log combined

The /etc/apache2/mods-available/dav_svn.conf is a great file for documentation on the settings. Create Password in AuthUserFile using htpasswd: sudo htpasswd -c /etc/subversion/passwd username
MIgration of SVN Migration of SVN Reposiories is as simple as dumping the data into a file and loading the dumped data in another repository to be migrated: svnadmin dump path/to/repos > repos.out
This will create a portable format for your repository (with history) in the file repos.out. Create a new repository where you would want to load the dump svnadmin create newrepos
svnadmin load path/to/newrepos < repos.out
to load your 'dumped' repos to the new or existing one. -- Source: http://www.howtogeek.com/howto/ubuntu/install-subversion-with-web-access-on-ubuntu/ http://stackoverflow.com/questions/939963/how-to-migrate-svn-to-another-repository http://www.if-not-true-then-false.com/2010/svn-subversion-access-control-with-apache-and-mod-authz-svn/

Technologies