[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Converting BDB to FSFS

From: Rachael Russell <rachael.russell_at_gmail.com>
Date: 2005-08-30 15:01:59 CEST

Flanakin Michael C Ctr HQ OSSG/OMR wrote:

> I'm trying to convert a repository from BDB to FSFS. Is there a
> utility that can do this? I was looking at doing an svnadmin dump, but
> it looks like this is FSFS only. I couldn't find anything that says
> otherwise. I get the following error:
>
> svnadmin: 'http://grpops/svn/dashboard' is an URL when it should be a path
>
> Any ideas? Thanks in advance.
>
> Michael Flanakin
>

One way to do this 'safely' is to create a new FSFS respository, then
pipe a svnadmin dump --> load into the new repository
You'll then have the bdb and a fsfs version - will need to change over
your repository config etc to use the new repository.

svnadmin needs to know the file path as far as i'm aware, not the apache
path... and i'ld run a verify first to make sure your repository is all
healthy.

something like this (from the Red Book:
http://svnbook.red-bean.com/en/1.1/ch05s03.html#svn-ch-5-sect-3.5):

> svnadmin verify /path/to/old/bdb/repos
> svnadmin create --fs-type fsfs /path/to/new/fsfs/repos
> svnadmin dump /path/to/old/bdb/repos | svnadmin load
/path/to/new/fsfs/repos

** Note - this will dump every revision - you can add filters etc to the
dump command if needed.

Once you're happy it's all OK, you can then delete the old bdb
repository - if the repository has the same name as the old one in your
apache conf, clients shouldnt need to change anything to continue working.

cheers
Rachael
Received on Tue Aug 30 15:41:12 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.