Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to tell the format of an svn repo on disk, without knowing how it was created? Possibly from the format or db/format files?

This question has lots of useful info about the different contents of those files, but there's no answer to what backend format the repo is using.

The (gentoo) machine I'm on is running subversion 1.5.6:

me@foo ~ $ svn --version
svn, version 1.5.6 (r36142)
   compiled Jan 13 2010, 15:02:26

I created a couple of test repos to play with:

me@foo ~ $ svnadmin create --fs-type bdb bdb-repo
me@foo ~ $ svnadmin create --fs-type fsfs fsfs-repo

The format and db/format files look almost identical:

me@foo ~ $ more bdb-repo/format bdb-repo/db/format
me@foo ~ $ more fsfs-repo/format fsfs-repo/db/format
layout sharded 1000

The only difference being the layout sharded 1000 line in the fsfs repo's db/format file. Is that the definitive indicator that it's using fsfs format? If not, is there some other way to tell?

share|improve this question
up vote 3 down vote accepted

Discovered the answer. It's in the db/fs-type file.

me@foo ~ $ cat bdb-repo/db/fs-type 
me@foo ~ $ cat fsfs-repo/db/fs-type 

Reference here.

I googled before I asked, I promise :)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.