Monday, May 4, 2009

Create SVN Repository

Main >> SVN >> Create SVN Repository


Now we have SVN server installed. The next step is to create the repository. The repository is of two formats BDB (Berkeley db database) and FSFS (FSFS database). By default when you create the repository it will choose default repository format.

In Subversion 1.0, a Berkeley DB repository is always created. In Subversion 1.1, a Berkeley DB repository is the default repository type, but an FSFS repository can be created, that I'm going to cover at the end.

As of Subversion 1.2, svnadmin creates new repositories with the FSFS filesystem backend by default. So here with SVN 1.4.5, the default repository format is FSFS.

Here we will learn how to create repository on AIX box, in a very few simple steps.
  1. Create a new directory somewhere say /usr/svn/SVN_REPOS. This directory will host your repository, but you will never open those files directly.

  2. Browse to the path /usr/svn/custom/bin

  3. svnadmin create /usr/svn/SVN_REPOS
  4. The above command will create the repository for you.

As mentioned earlier, we are using SVN 1.4.5 and by default the repository format would have been FSFS. If you still don’t feel satisfied, have a look at the file mentioned below:

/usr/svn/SVN_REPOS/db/fs-type


Going little backward, a question that I kept open was this
"In Subversion 1.1, a Berkeley DB repository is the default repository type, but an FSFS repository can be created, that I'm going to cover at the end."

So here I go, in order to create a repository for SVN 1.1 with the FSFS format. You will have to create the repository using following command
svnadmin create /usr/local/svn/repos --fs-type fsfs

Now if you ask how do we create repository using BDB format in SVN 1.4.5, I will have to check that. Will be back with this next time.

No comments:

Post a Comment