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

I wan't to start using SVN.

I've been reading about it, and installed Tortoise on my windows machine.

What I need to understand though, is where to create my repository if the folder I want to manage is in var/www/vhost/

I don't quite grasp the concept of a repository, so if I could have a pointer from you guys in the right direction it would help me a lot.

share|improve this question
I'm not trolling you, but unless svn is part of your job/team/company, I have a hard time recommending svn over git or mercurial for new projects. (i.e. use it for legacy projects if you don't feel like making the conversion to a new SCM.) – gWaldo Sep 15 '11 at 18:28
up vote 1 down vote accepted

A High-Speed Tutorial is available but if you're new to version control you may want to check this before.

Although it is written for the command line, it should be quite easy to find the equivalent operations in Tortoise, except perhaps for the $ svnadmin create repos that probably needs to be run from a shell (maybe by root, depending on where you create).

The repository may be created anywhere you like but preferably in a safe place, not /var/www. As hinted by Chris you may (and should) instead checkout a working copy there. I also suggest that you use a separate checkout (maybe in your login directory) for development.

share|improve this answer

The repository is the central master copy of the source that contains the change history. you should place it in a location where it can grow and be backed up easily.

The working copy is the version you will be editing that contains .svn folders in each subfolder. This is created by doing a checkout.

The deployed folder (in your case "/var/www/vhost/") can be the working copy or an "export"ed copy. If you use the deployed folder as a working folder be sure you secure the .svn folders from being served via HTTP.

share|improve this answer

Create your repository anywhere else, preferably on a different server that is regularly backed up. Then you make your existing httpdocs into a working copy for that repository, according to these instructions.

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.