/[scripts]/trunk/svn_bdb2fsfs.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/svn_bdb2fsfs.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12 - (show annotations)
Sun Sep 25 16:39:57 2005 UTC (17 years, 2 months ago) by dpavlin
File MIME type: application/x-sh
File size: 483 byte(s)
convert Subversion repisitory to fsfs file type

1 #!/bin/sh
2
3 # convert Subversion repository (in BDB format hopefully) to fsfs
4
5 if [ -z "$1" ] ; then
6 echo "usage: $0 path/to/svn/repository"
7 exit
8 fi
9
10 rep=$1
11 type=`cat $rep/db/fs-type`
12
13 if [ "$type" == "bdb" ] ; then
14 echo -n "$1 is $type, converting to fsfs"
15
16 svnadmin create --fs-type=fsfs $rep-fsfs
17 ( svnadmin dump $rep | svnadmin load $rep-fsfs 2>/dev/null ) && mv $rep/db $rep/db.bdb && mv $rep-fsfs/db $rep/ || exit
18
19 rm -Rf $rep-fsfs && rm -Rf $rep/db.bdb
20
21 echo " done"
22 fi

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26