Riaan Lehmkuhl's Blog

Subversion, Progamming, Tips & Tricks and whatever else springs to mind.
29Dec

Convert Subversion Repositories from BDB to FS

29 December 2006 21:18 by Riaan Lehmkuhl
Having a lot of problems with 'wedged' repositories?
A shell script to convert SVN Repositories from BDB to FS.

Change the SVNBASE, SVNREPOS and SVNTEMP variables to point to where your directories are. #!/bin/bash E_WRONGARGS=65 E_DIRDOESNTEXIST=66 if [ -z "$1" ]; then echo "Usage: `basename $0` name_of_repository" exit $E_WRONGARGS fi echo "Creating $1 repository" # set up environment SVNBASE=/subversion SVNREPOS=$SVNBASE/repos SVNTEMP=$SVNBASE/temp if [ ! -d "$SVNREPOS/$1" ] ; then echo "`basename $0`: Can't open repository '$1': No such file or directory" exit $E_DIRDOESNTEXIST fi echo "dumping DBD repos $1" svnadmin dump $SVNREPOS/$1 > $SVNTEMP/$1.dmp echo "removing DBD repos $1" mv $SVNREPOS/$1 $SVNTEMP/$1 echo "creating FSFS repos $1" mkdir $SVNREPOS/$1 svnadmin create $SVNREPOS/$1 --fs-type fsfs echo "loading $1.dmp to FSFS repos" svnadmin load $SVNREPOS/$1 < $SVNTEMP/$1.dmp chown -R apache:apache $SVNREPOS/$1 chmod -R ug+rw $SVNREPOS/$1 # for SELinux chcon -R -h -t httpd_sys_content_t $SVNREPOS/$1 echo "Done."

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Comments are closed

Riaan Lehmkuhl


Me, a disorder of the brain that results in a disruption in a person's thinking, mood, and ability to relate to others.

Recent comments

Comment RSS

Thingies

Calendar And Month List

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

Disclaimer & Privacy

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

Privacy:
We use third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.

Most comments

Cool Quote

I know that you believe that you understood what you think I said, but I am not sure you realize that what you heard is not what I meant. - Robert McCloskey