Where to create a subversion repository on a server?

Posted on

Where to create a subversion repository on a server? – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, filesystems, best-practices, , .

When managing my own servers, I normally keep data such as svn repositories in /srv/svnrepo.

In the organization I currently a part of the SAs have been using /home/svnrepo.

My decision to standardize to /srv/svnrepo was based on my understanding of FHS. However, after looking on some subversion how-to’s, it seems that many people use /home/ to store their svn repository.


  1. What path are you using and why?
  2. Is there anything wrong with using /srv/? Does your understanding of FHS differe from mine?

Solution :

It depends on where /srv or /home is mounted. If /srv is mounted on a smaller / volume, for example, it might not be wise to put it there. Just make sure you put it on a volume with proper diskspace, performance and redundancy for your SVN servers needs.

I don’t really follow FHS that much. On most of my systems I have OS/system drive on / on mirrored disks where all the /usr, /var, /home, /etc etc. is located and then I usually have one or more RAIDs mounted under/data1, /data2 etc.

So when I put SVN repositories on these systems I usually create it under /data1/svn.

And as always, make sure the volumes are included in any backup solution you have implemented.

I usually put repos in /var/code or /var/svn. I figure it qualifies as “variable” data. /var is sometimes on a separate partition for files that change often, and it’s backed up automatically on my machines.

Leave a Reply

Your email address will not be published.