...
Before creating repositories users and a group must be defined to have access to create or it will not work
so we add the group subversion and the user www-data which is what apache uses,
Code Block |
---|
|
sudo mkdir /opt/svn-repos
sudo addgroup --gid 3001 subversion
sudo chown -R www-data:subversion |
...
Code Block |
---|
|
cd /opt/svn-data
sudo chown -R www-data:subversion hamsters
sudo chmod -R g+rws hamsters |
Backup and Restore
Checking the revision numbers in a repository
Code Block |
---|
|
svnlook info hamsters |
Code Block |
---|
|
svnadmin dump /opt/svn-repos/hamsters > hamstersdumpfile |
Dumps all revisions of the repository into a file in this case hamstersdumpfile
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