Creating a new SVN repository

07th Mar, 2011 | svn

Create the repository and set file permissions

svnadmin create {path to repository}

chown -R www-data:svn {path to repository}

Edit dav_svn config file to enable repository access via http

vi /SA_rick/live/apache2/mods-available/dav_svn.conf

Create or add users for the repository

htpasswd /SA_rick/live/apache2/dav_svn.passwd 

Restart apache

/etc/init.d/apache2 restart

Import files into the empty repository

svn import {path of files to import} {repository path} -m "Initial import"