Posts

Showing posts with the label Subversion

SVN mirror for Live back-up - High Availability

Other then taking backup at regular interval, we may want to provide keep live data just to make sure data is highly available. The best option is to backup Live data as soon as it gets changed. Here is the trick for the SVN Mirroring. How to create Repository Only user with correct access as admin can create new repository Identify the repository name and cluster. You must follow the approval process before creating any new repository. Create repository svnadmin create /svnroot/<Repo_name> change the owner of repository to apache(if needed)  chown -R apache:apache /svnroot/<Repo_name> Now you need to create Mirror repository on another SVN server, following are the steps to create "Mirror repository". How to create Mirror Repository Take the hotcopy of the repository from 1st SVN server. svnadmin hotcopy /svnroot/<Repo_name> /tmp/<Repo_name> Remove the hook script if any create a tar file of the repo and scp it to...

Access Restriction for User in SVN

Controlling User access in Subversion User can be restricted in SVN for the repo/branch etc via pre-commit scripts But that restriction will be only for check in (commit). What if you want to restrict user from reading or checkout your repo/directory/branch. If you have some sensitive information in your repo(Or any other reason) which can only be accessed by set of users, Here is your solution to restrict read access to repo. In your apache conf file you need to add following configuration.    AuthzSVNAccessFile  /etc/apache2/conf/authz.conf

SVN Tag and Branch Lock

Locking SVN Tag Every branch, tag is a directory in SVN. You have to(can) manipulate the directories as per your requirement. SVN does not provide any in built feature to lock any branch directory (branch, tag). Here is the script to lock the tags in svn #tag_lock.sh #!/bin/sh

Few Pre commit SVN scripts and tricks

SVN hook scripts Today I would like to talk about some SVN pre-commit hooks scripts and customizations. SVN comes with feature of precommit hook script which can be used to control commit and put tab on the basis of multiple requirements. Here are few very common needed features in form of scripts. Binary file check

Cluster/Partitioning of SVN Root

Partitioning of SVN Repository location  There could be need in an organization to have subversion repositories for multiple business group or verticals, But at the same time they should be very well partitioned and should not look at each others repos. This means you need separate repo area for each business unit. This can be done in 2 ways, either you can install separate SVN for each Business unit and handle the authentication according to their need OR you can use cluster management and

ViewVC Installation for SVN

ViewVC installation SVN is just an installation of binaries on server machine which is usually accessed by apache (oh! there are other ways too but let me stay with apache here). There are Several client side UI tools to access SVN like tortoise SVN, Silk SVN etc through which you can access history and other metadata of your repository. Some time still there is need to have a strong browser based UI tool which can provide accessibility for traversing repo in a nice fashion where you can have look at history, commits, authors, logs etc..

svn installation with ldap + swig with ssl

SVN Installation with Ldap with SSL  Subversion is a tool which does not have any running server agent rather usually it gets setup to works over Apache. Subversion is very easy on installation and configuration but some time it would be pain if we need to have ldap, ssl, viewvc along with basic svn installation. Here i am detailing the Subversion installation with ldap, ssl and lot other modules needed. Contents 1.      Information.. 2.      Require Software and tools. 3.      Pre-Requisite libraries. 4.      Installation 4.1 OpenSSL 4.2 OpenLdap 4.3 Apache 4.4 expat 4.5 PCRE 4.6 Swig 4.7 Subversion 5.      Other Configurations 5.1 Ldap 5.2 SSL Keys 5.3 Apache conf file