User Tools

Site Tools


subversion

subversion

svnadmin

Dump a repository

svnadmin dump myrepo >myrepo.dump

Import a previously dumped repository

svnadmin create myrepo
svnadmin load myrepo <myrepo.dump

Subversion with Apache2

mkdir /var/lib/svn
chown www-data.www.data /var/lib/svn
a2enmod dav_svn
/etc/init.d/apache2 restart

Basic config:

/etc/apache2/mods-enabled/dav_svn.conf
<Location /svn>
  DAV svn
  SVNParentPath /var/lib/svn
  AuthType Basic
  AuthName "Subversion Repositories"
  AuthUserFile /etc/apache2/dav_svn.passwd
  #<LimitExcept GET PROPFIND OPTIONS REPORT>
     Require valid-user
  #</LimitExcept>
</Location>

Create user-password pairs using htpasswd respectively htdigest.

htpasswd -c -m /etc/apache2/dav_svn.passwd myuser1
htpasswd -m /etc/apache2/dav_svn.passwd myuser2

Checkout the repository:

svn co http://server/svn/myrepo
subversion.txt · Last modified: 2011-02-25 18:29 CET by dominik