Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
sudo mkdir /var/svn-repos
sudo addgroup --gid 3003 subversion
sudo useradd -d /home/www-data/ -m -g subversion -u 2003 -c "svn user" -s /bin/bash www-data
sudo chown -R www-data:subversion /var/svn-repos/*

sudo chmod -R 750 /var/svn-repos/*

...

The svnadmin allows you to create svn repositories and allows you to perform several maintenance operations on the repositories
Heres an example of how to create 2 different types of repositories  Prior to Subversion 1.2, the default was to use Berkeley DB; the default is now FSFS. You can explicitly choose the filesystem type using the --fs-type argument, which accepts as a parameter either fsfs or bdb. Prior repositories

Info

Prior to Subversion 1.2, the default was to use Berkeley DB; the default is now FSFS. You can explicitly choose the filesystem type using the --fs-type argument, which accepts as a parameter either fsfs or bdb.

Code Block
#How to create an FSFS-backed repository
svnadmin create --fs-type fsfs /var/svn-repos/project_alpha


#How to create a Berkeley-db-backed repository
svnadmin create hamsters

In this case we will use the first one so login to www-data then createsu - www-data
svnadmin create --fs-type

...

fsfs /var/svn-repos/

...

The hamsters Configuring ApacheTo modify the apache svn module configuration file use your favorite editor on the dav_svn file which is located at /etc/apache2/mods-available/dav_svn.confThe repositories directory needs proper permissions for apache and other users

...