About SVN :

Manual Says Subversion  is  a version control system, which allows you to keep old versions of files and directories (usually source code), keep a log of who, when, and why changes occurred, etc., like CVS, RCS or SCCS.  Subversion keeps a single copy of the master sources.   This copy is called the source ‘‘repository’’; it contains all the information to permit extracting previous versions of those files at any time


1. Create a SVN reposity 

               # mkdir /var/ssdgsvn/                   
               # chmod -R 775 /var/ssdgsvn/      
               #chgrp -R ssdgsvn /var/ssdgsvn/  
               # svnadmin create /var/ssdgsvn/  
Create ssdgsvn group  and add all users to ssdgsvn group.

                #  groupadd ssdgsvn               
                #  usermod -G zaman ssdgsvn 
                #  id  zaman                         

2. Configure svn.conf

               # cp /var/ssdgsvn/conf/svnserve.conf /var/ssdgsvn/conf/svnserve.conf.orig     

   Uncomment the following in  /var/ssdgsvn/conf/svnserve.conf

                 anon-access = read                        
                 auth-access = write                       
                 password-db = passwd                  
                realm = DGRepository                   

 Add a name for realm in  /var/ssdgsvn/conf/svnserve.conf as shown above

3.   Accessing  SVN

3.1  Check out the code from SVN Repository using SVN over SSH

            svn co svn+ssh://user@SVN Server IP/SVN Repo
     e.g  svn co svn+ssh://zaman@
       "User" need not to be created additionally , it is the standard linux user .

3.2  Add the content to be added to SVN

     Suppose I want to add following directory  to svn 

           svn add redhatcluster/
A         redhatcluster
A         redhatcluster/cluster.conf

3.3  Now check in the added content to svn repository

            $ svn ci -m  "Added Redhat cluster Config"
            zaman@'s password:
Adding         config/redhatcluster
Adding         config/redhatcluster/cluster.conf
Transmitting file data ....
Committed revision 3.


Popular posts from this blog

PSSH : Parallel SSH to execute commands on a number of hosts

How to add check_http as a service in Nagios Monitoring using NRPE

Configuring Nagios to monitor services using NRPE