Slide 1
Most trusted JOB oriented professional program
DevOps Certified Professional (DCP)

Take your first step into the world of DevOps with this course, which will help you to learn about the methodologies and tools used to develop, deploy, and operate high-quality software.

Slide 2
DevOps to DevSecOps – Learn the evolution
DevSecOps Certified Professional (DSOCP)

Learn to automate security into a fast-paced DevOps environment using various open-source tools and scripts.

Slide 2
Get certified in the new tech skill to rule the industry
Site Reliability Engineering (SRE) Certified Professional

A method of measuring and achieving reliability through engineering and operations work – developed by Google to manage services.

Slide 2
Master the art of DevOps
Master in DevOps Engineering (MDE)

Get enrolled for the most advanced and only course in the WORLD which can make you an expert and proficient Architect in DevOps, DevSecOps and Site Reliability Engineering (SRE) principles together.

Slide 2
Gain expertise and certified yourself
Azure DevOps Solutions Expert

Learn about the DevOps services available on Azure and how you can use them to make your workflow more efficient.

Slide 3
Learn and get certified
AWS Certified DevOps Professional

Learn about the DevOps services offered by AWS and how you can use them to make your workflow more efficient.

previous arrow
next arrow

SVN admin project to backup and restore the svn repo

Spread the Knowledge

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

Rajesh Kumar