Monday, November 9, 2009

Upgrading Subversion in Ubuntu 9.10 server

Step 1:Install the subversion
apt-get install subversion libapache2-svn

Step 2: Create the repository

svnadmin create /svn

Edit the directory

# Uncomment this to enable the repository,
DAV svn
# Set this to the path to your repository
SVNPath /svn
# Uncomment the following 3 lines to enable Basic Authentication
AuthType Basic
AuthName “Subversion Repository”
AuthUserFile /etc/apache2/dav_svn.passwd

Require valid-user

Save and exit the file

Creation of user
htpasswd -cm /etc/apache2/dav_svn.passwd imran
New password:
Re-type new password:
Adding password for user imran

Enable ssl (if required)
#a2enmod ssl

This will enable the ssl if you have problem to set it.

Export by :Dumping the existing repository
root@jupiter:/svn# svnadmin dump svn > reposdump.dmp
Import by:
root@saturn:/srv# svnadmin load srv-jupiter < /home/imran/reposdump.dmp

No comments: