...
Code Block |
---|
sudo mkdir /var/svn-repos
sudo addgroup --gid 3001 subversion
sudo chown -R www-data:subversion /var/svn-repos/
sudo chmod -R 750 /var/svn-repos/ |
Now our model we do not want Subversion users tied to the operating system. So we are going to rely on our catch all server admin id, serveradmin,
...
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 |
---|
sudo mkdir /opt/svn-data
sudo chown svradm:subversion /opt/svn-data
su - serveradmin
svnadmin create --fs-type fsfs /opt/svn-data/hamsters |
Setting permissions on the Repository
After the repository is created, in order for the WebDAV process to work with the repository you need to change the permissions,
Code Block | ||
---|---|---|
| ||
cd /opt/svn-data
sudo chown -R www-data:subversion hamsters
sudo chmod -R g+rws hamsters |
Backup and Restore
References
http://svnbook.red-bean.com/en/1.4/svn.intro.whatis.html
http://www.howtoforge.com/debian_subversion_websvn - Debian instructions more straight forward
http://confluence.atlassian.com/display/CROWD/Integrating+Crowd+with+Subversion - Integrating with Crowd
http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.reposadmin.maint.migrate - Indepth explanation on migrating repositories