what is .svn ?

krishna_8888 created the topic: what is .svn ?
hi this is krishns … iam learning svn ….

when i performed check out operation ,trunk is copied to my local system..

in that trunk .svn folder is automatically created ..

why .svn?
under that pristine, temp, entries, format,wc …… all these are created .

can any one will explain about this

Tagged :

SVN server setup and troubleshooting

rajeshkumar created the topic: SVN server setup and troubleshooting
SVN server setup and troubleshooting

Setup SVN server in 7 steps:
www.civicactions.com/blog/2010/may/25/ho…itory_7_simple_steps
help.ubuntu.com/community/Subversion
help.ubuntu.com/lts/serverguide/subversion.html
www.krizna.com/ubuntu/setup-svn-server-on-ubuntu-14-04/
odyniec.net/articles/ubuntu-subversion-server/
stackoverflow.com/questions/60736/how-to…-on-gnu-linux-ubuntu

Error 1
svnserve: Can’t bind server socket: Address already in use

Solution:
errorbank.blogspot.in/2012/07/svnserve-c…d-server-socket.html
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Reduce the size of SVN repos or cleanup revsion

rajeshkumar created the topic: Reduce the size of SVN repos or cleanup revsion
How to reduce the Repos size drastically without impacting the integrity and version of the files?

How to cleanup and Reduce the size of SVN repos?
The way Subversion and CVS work is that they keep an entire history of changes, including deleted files, binary files, etc. Each revision is dependent on the last revision, so you can’t just delete and oblitrate out a revision somewhere in the middle or we corrupt repository.

There are few things we can do if we are running out of space…

Option 1: Dump and load to new repos
Removing old revisions kind of defeats the point of version control so it is not recommended but Dump out the revisions you want to keep, then put them into a new repo, and delete the old one.
New repos should be set with latest svn release which will take less disk size.
svnadmin dump /path/to/current/repo -r48:50 > svn.dump
svnadmin create /path/to/new/repo
svnadmin load /path/to/new/repo < svn.dump svnbook.red-bean.com/en/1.7/svn.ref.svnadmin.c.dump.html
svnbook.red-bean.com/en/1.7/svn.ref.svnadmin.c.load.html

Option 2: svndumpfilter
Use svndumpfilter to include/exclude the particular bits you want. svndumpfilter is a command-line utility for removing history from a Subversion dump file by either excluding or including paths beginning with one or more named prefixes.
svnbook.red-bean.com/en/1.1/ch05s03.html#svn-ch-5-sect-3.1.3

Option 3:svnsync
replicate the repository with svnsync after configuring path-based authorization rules that deny read access to any paths that need to be filtered from history. Unlike svndumpfilter, svnsync will automatically translate copy operations with an unreadable source path into normal additions, which is useful if history involving copy operations needs to be filtered.

svnbook.red-bean.com/en/1.7/svn.reposadm…in.maint.replication
svnbook.red-bean.com/en/1.7/svn.serverco….pathbasedauthz.html
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

SVN admin project to backup and restore the svn repo

rajeshkumar created the topic: SVN admin project to backup and restore the svn repo
Write a shell scripting using swtich case with the following options.
1. Create a repo. Repo name should be entered by user
2. Take a full dump
3. Incremental backup. user need to entered the revsion nujmber
4. Restore the dump to the location which has been entered by the user
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

sribhavani_u replied the topic: SVN admin project to backup and restore the svn repo
#!/bin/bash
#Write a shell scripting using swtich case with the following options.
#1. Create a repo. Repo name should be entered by user
#2. Take a full dump
#3. Incremental backup. user need to enter the revision number
#4. Restore the dump to the location which has been entered by the user
while true
do
echo “1. Create a repo.”
echo “2. Take a full dump”
echo “3. Incremental backup.”
echo “4. Restore the dump”
echo “Enter a number for choosing the option:”
read num
case $num in
1) echo “repo name:”
read name
mkdir -p /usr/src/svn/$name
svnadmin create –fs-type fsfs /usr/src/svn/$name
echo “repo $name created” ;;
2) svnadmin dump /usr/src/svn/$name –revision 0:HEAD > $name.dump
echo “$name.dump file created” ;;
3) echo “give revision number”
read rev
svnadmin dump /usr/src/svn/$name –revision $rev:HEAD –incremental > $name-$rev.dump
echo “incremental dump done” ;;
4) echo “give the location to where the dump should be restored”
read loc
svnadmin load $loc < $name.dump echo "dump restored" ;; *) echo "INVALID OPTION" exit ;; esac done rajeshkumar replied the topic: SVN admin project to backup and restore the svn repo
#!/bin/bash
#Write a shell scripting using swtich case with the following options.
#1. Create a repo. Repo name should be entered by user
#2. Take a full dump
#3. Incremental backup. user need to enter the revision number
#4. Restore the dump to the location which has been entered by the user
while true
do
echo “1. Create a repo.”
echo “2. Take a full dump”
echo “3. Incremental backup.”
echo “4. Restore the dump”
echo “Enter a number for choosing the option:”
read num
case $num in
1) echo “repo name:”
read name
mkdir -p /usr/src/svn/$name
svnadmin create –fs-type fsfs /usr/src/svn/$name
echo “repo $name created” ;;
2) svnadmin dump /usr/src/svn/$name –revision 0:HEAD > $name.dump
echo “$name.dump file created” ;;
3) echo “give revision number”
read rev
svnadmin dump /usr/src/svn/$name –revision $rev:HEAD –incremental > $name-$rev.dump
echo “incremental dump done” ;;
4) echo “give the location to where the dump should be restored”
read loc
svnadmin load $loc < $name.dump echo "dump restored" ;; *) echo "INVALID OPTION" exit ;; esac done Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

Tagged :

SVN mirror for Live back-up – High Availability

vishal_vsh1 created the topic: SVN mirror for Live back-up – High Availability
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/
change the owner of repository to apache(if needed) chown -R apache:apache /svnroot/
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/ /tmp/
Remove the hook script if any
create a tar file of the repo and scp it to 2nd SVN server.
Log in to 2nd server and untar the file.
now again do hotcopy to svnroot location on 2nd server
svnadmin hotcopy /svnroot/

Create 2 hook scripts start-commit and pre-revprop-change on 2st servver, The reason for this is that you can make use of these script to make sure that commit to 2nd server is happening via automated way instead of someone manually committing which you do not want to happen.
Change the owner of repository to apache(if needed) chown -R apache:apache /svnroot/
Now you need to initialize the sync mechanism, login to 1st server.
Go to repository hook location and add following content in post-commit script.
#Calling sync job
TO=//
/svnroot/hook-scripts/sync.sh “$REPOS” “$TO” “2>&1 > /dev/null &

The Above will run after every commit and sync the latest revision to mirror.

Lets assume your main SVN repo is = svn.domain.com
And mirror SVN repo is = svn-mirror.domain.com

content of sync.sh

#!/bin/bash

REPOS=$1
MIRROR=$2

#Replace your username and password
SVNSYNC=/usr/local/bin/svnsync
SYNC_USER=bot
SYNC_PASS=admin
SOURCE_USER=bot
SOURCE_PASS=admin

# Sync to Mirror
$SVNSYNC –non-interactive sync $MIRROR \
–sync-username $SYNC_USER –sync-password $SYNC_PASS \
–source-username $SOURCE_USER –source-password $SOURCE_PASS
if [ $? != 0 ]; then
mail -s “svn sync failed for $REPOS for $MIRROR” your-emain-id@my.com < /dev/null fi create a post-revprop-change script and add above content with following change TO=//
/svnroot/hook-scripts/sync_prop.sh “$REPOS” “$TO” 2>&1 > /dev/null &

Content of sync_prop.sh

#!/bin/bash

REPOS=$1
MIRROR=$2

SVNSYNC=/usr/local/bin/svnsync
SYNC_USER=bot
SYNC_PASS=admin
SOURCE_USER=bot
SOURCE_PASS=admin

# Sync to Mirror
$SVNSYNC –non-interactive copy-revprops $MIRROR \
–sync-username $SYNC_USER –sync-password $SYNC_PASS \
–source-username $SOURCE_USER –source-password $SOURCE_PASS
if [ $? != 0 ]; then
mail -s “svn sync_Prop failed for $REPOS for $MIRROR” yourname@my.com < /dev/null fi Now, you need to initialize the sync, run the following command on Main SVN server(1st one). svnsync initialize // svn.corp.domain.com/ / –sync-username bot –sync-password admin –source-username bot –source-password admin

How to debug the svn sync problem

Usualy sync failed and we get the alert saying the sync is getting failed.
if you try to run the sync manualy it may throw following error.

Failed to get lock on destination repos, currently held by ‘something:db33884a-d10f-11e1-924a-47b0d8d1042f’
This means last sync couldn’t perform the whole action and lock is still hanging for the repo.
In this case you log in to mirror server for which it is failing and run the following command

svn propdel svn:sync-lock –revprop -r 0 //

This will clear the lock and output would be something like “property ‘svn:sync-lock’ deleted from repository revision 0”.

Then you can go and run the manual sync command and it should work now. 🙂

Reference – >www.scmtechblog.net/2015/07/svn-mirror-f…ve-back-up-high.html

Tagged :

How to Setup SVN Server with Apache2 in Ubantu?

setup-svn-server-with-apache2-in-ubantu

This tutorial is to setup the SVNServer from base using Apache2 in Ubantu only.

> sudo apt-get update

> sudo apt-get install subversion apache2 libapache2-svn apache2-utils

> sudo addgroup subversion

> sudo mkdir /home/svn

> sudo chown -R www-data:subversion /home/svn

> sudo chmod -R g+ws /home/svn

> sudo svnadmin create /home/svn/myWebsite

sudo vim /etc/apache2/mods-available/dav_svn.conf

& add the following entry at the end of file.

<Location /svn/myWebsite> DAV svn SVNPath /home/svn/myWebsite AuthType Basic AuthName "myWebsite subversion Repository" AuthUserFile /etc/subversion/passwd <LimitExcept GET PROPFIND OPTIONS REPORT> Require valid-user </LimitExcept> </Location>

sudo htpasswd -c /etc/subversion/passwd rajesh

sudo chown -R www-data:subversion /home/svn/myWebsite

sudo chmod -R g+rws /home/svn/myWebsite

sudo /etc/init.d/apache2 restart

sudo htpasswd /etc/subversion/passwd user1

sudo /etc/init.d/apache2 restart

All DONE.

Now you can access the SVN Server using….

http://uvo12exe3iancqqq622.vm.cld.sr/svn/myWebsite/

If you are still not able to open the url, that means you have IPtables services running and stopping you to access the server. For testing, you can stop the sudo ufw stop

Tagged : / / / / / / / / / / / / / /

Subversion user and administration training | SVN Course | SVN Training | India

subversion-svn-training-course

Our Subversion training courses are designed to provide the necessary hands-on experience to enable attendees to become productive immediately. We offer public classes at our training centers, private classes that can be held on-site at the customer’s location, as well as web based training.

Subversion user and administration training agenda as below;
Fundamental Concepts

    • The Repository
    • The Problem of File Sharing
    • The Lock-Modify-Unlock Solution
    • The Copy-Modify-Merge Solution

Subversion in Action

    • Subversion Repository URLs
    • Working Copies
    • Revisions
    • How Working Copies Track the Repository
    • Mixed Revision Working Copies

Basic Usage

    • Help!
    • svn import
    • Recommended Repository Layout
    • Disabling Password Caching
    • Authenticating As a Different User

Basic Work Cycle

    • Update Your Working Copy
    • Make Changes to Your Working Copy
    • Examine Your Changes
    • Undoing Working Changes
    • Resolve Conflicts (Merging Others’ Changes)
    • Commit Your Changes

Examining History

    • Generating a List of Historical Changes
    • Examining the Details of Historical Changes
    • Browsing the Repository
    • Fetching Older Repository Snapshots
    • Disposing of a Working Copy
    • Recovering from an Interruption

Advanced Topics

    • Revision Specifies
    • Properties
    • File Portability
    • Locking
    • Changelists
    • Network Model

Branching and Merging

    • Using Branches
    • Basic Merging
    • Advanced Merging
    • Tags
    • Branch Maintenance
    • Common Branching Patterns
    • Vendor Branches

Repository Administration

    • Strategies for Repository Deployment
    • Creating and Configuring Your Repository
    • Repository Maintenance
    • Server Configuration
    • Customizing Your Subversion Experience

About us:
scmGalaxy online platform is a community initiatives based on Software configuration management and DevOps that helps members and organizations to optimize their software development process, advocating agile methodologies and improve productivity across all aspects of Application lifecycle management. We provide consulting, training and mentoring services in agile development practices such as Source Code Management, Continuous Integration, Build management, Test-Driven development, Acceptance-Test driven development, Build automation, code quality practices and automated testing and continuous delivery.

We provide job oriented training in the area of Software Configuration management, Build and Release Engineering and DevOps domain . Candidates with engineering or software background and looking to either start or change their career to Build and Release Engineering, would benefit most from this training. This course offered online around the globe which include India, USA, Europe, Australia, Bangalore, Delhi, Pune, Mumbai, Chennai and Hydrabad. Instructor is an expert in Software configuration management, Build and release engineering and DevOps with more than 10 years industry experience in India.

Course Objectives
To bring your team up to speed with agile development, We can also run the from Continuous Integration to Continuous Delivery with automated course within your premises.
Course Schedule
This course is an intensive 1-day & 2-day workshop with a mixture of teaching and lab exercises. Currently, this course is offered exclusively as an on-line course. Please contact us for more details.
Audience
This is a hands-on, practical course designed to teach specialized skills for real-world development situations. It is thus primarily aimed at a SCM Engineer, Build/Release Engineer, DevOps engineer and developer and QA audience.
Approach
The course is modular and flexible – depending on specific student needs and requests. Through our trainings, you benefit from the wide experience and architectural expertise of our team. We bring that experience to you in an highly interactive, intensely hands-on setting.
Assumptions
We assume participants have a reasonable understanding of Development in any language as well as a basic understanding of the Software Development Life Cycle.
Lab Work
All our courses are above all practical in nature. We believe that the best way to learn is by doing. So the course contains approximately 80% lab work.
Learning Resources
Each registrant will receive a copy of the student notes and lab solutions, a certificate of completion, and a CD containing all the tools covered in the course and CD containing all the tools covered in the course.
Contact Us
This course is provided on-site, and can be tailored to your particular requirements. If you would like our trainings delivered at your premises, or for any additional information please contact us. Please email us at info@scmGalaxy.com

Tagged : / / / / / / / / / / / / / / / / / /

Build and Release Course Training with Jenkins / Maven /Ant/ SVN & Git

build-and-release-training-with-jenkins-maven-ant-svn-git

Upcoming Training Dates | Training Agenda | Training Calender | FAQ | Why scmGalaxy Online Training

Click Here

Mode – Online based
Email – info@scmgalaxy.com

Lab Setup Details – Prerequisites
Operating Systems – Windows 7 or Linux(RHEL 7.X or Ubantu)
JDK 1.7 or Higher
SCM Tool Clients Installed (SVN, GIT, Perforce)
Servlet container like GlassFish and Tomcat (If one wants to host Jenkins outside) – Optional

[If trainee is having any specific learning agenda to be addressed in this training apart from the table of Content as below; please email me @ info@scmgalaxy.com]

Table of Content

Continuous Integration with Jenkins

  • What is Software Configuration Management
  • What is Build and Release Engineering
  • Introduction of Version Control Management?
    • Basic usage of Subversion
    • Basic usage of git
  • Introduction of Build Management?
    • How to write ant script?
    • How to write Maven script?
    • How to write MSBuild Script?
  • Introduction of Release Management?
  • Benefit of Continuous Integration?
  • Different Continuous Integration Tools?
  • Focus on Jenkins
  • Installation and Setup of Jenkinks
  • Configure a Job to Build the Project using SVN /GIT and ANT/Maven
  • Using Build Script (Ant, Maven and MSBuild) with Jenkins
  • Authentication and Authorization in Jenkins
  • Lab and Assignment
  • Nodes Setup in Jenkins
  • Labels, Tags and Notification using Jenkins
  • Empowered with Plugins in Jenkins
  • 20 Popular Plugins and Their Usage
  • Integrating Jenkins with Junit for automated testing
  • Integrating Jenkins with HP-QC for automated testing
  • Integrating Jenkins with Cobertura for test Coverage
  • Integrating Jenkins with Sonar for static code analysis
  • Release and Deployments using Jenkins and Nexus
  • Advance Jenkins
    • Jenkins Scripting
    • Jenkins Command line
  • Reporting and Dashboard using Jenkins
  • Lab and Assignment

Build and Release Training In Bangalore | Build and Release Training in India | Build and Release Training in Hyderabad | Build and Release Training in Delhi | Build and Release Training in Pune | Build and Release Trainer In Bangalore | Build and Release Trainer in India | Build and Release Trainer in Hyderabad | Build and Release Trainer in Delhi | Build and Release Trainer in Pune

Tagged : / / / / / / / / / / / / / / / / / / / / / / / /

Top 10 Interview Questions and Answers in SVN (Subversion)

svn-subversion-interview-questions-and-answers

  • What is SVN?

  • What is “branch” , “Tag” and “Trunk” in SVN ?

  • what do you mean by “Synchronizing with Repository” ? How is it different from “Update” ?

  • Difference between Update and Commit ?

  • How to apply a patch in SVN ?

  • What if SVN Update gives Merge Conflicts and you just want your local files to be overriden with the repository versions ?

  • trunk vs branch vs tag in subversion or SVN

  • What is the process to take backuop and restore in SVN?

  • How to setup SVN?

  • How to setup authentication in SVN?

Tagged : / / / / / / / / / / / / / / /

How to Integrate Jenkins with SVN ? | Jenkins Integration with SVN Guide

jenkins-with-svn

Hi Rajesh,

Can you please help me to configure LDAP in SVN,i checked with some of my friends but i am not able to understand that.If you having any document related to LDAP configuration please send to me or you replay here also.
Thanks & Regards
Sujeet Sahu
M:09741939212
Mail id: sahusujeet@ymail.com
Tagged : / / / / / / / / / / / / / /