Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change where Subversion repositories are stored?

Newbie question: I just installed VisualSVN Server and created a repository. I noticed that it created it at C:\Repositories. I need it stored on my D drive instead as there is more space there. I Googled around but can't figure out how to do it.

This is a new installation so - if it is easier - I could delete the repository first.

In a nutshell: How do I get Subversion to store repositories at D:\Repositories instead of C:\Repositories?

Thanks, Roger

like image 246
user98773 Avatar asked Jul 10 '09 03:07

user98773


2 Answers

  1. Open VisualSVN Server Manager
  2. Right-click on root node and select Properties
  3. Change repositories location on Storage page
  4. Click OK
like image 144
Ivan Zhakov Avatar answered Oct 08 '22 05:10

Ivan Zhakov


I got myself in a bind where the repository was moved before I could make a change on the server. All I got was an error on my VisualSVN Server Manager that said "Can't open directory ..."

My solution, after trying those already provided, which did not work in my case, was to access the registry and modify the RepositoriesRoot entry to the correct path under

"HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/VisualSVN/VisualSVN Server"

This may be under the "HKEY_LOCAL_MACHINE/SOFTWARE/VisualSVN/VisualSVN Server" location if you're not running a 64 bit OS

Changing the value in that location got me back up and running.

... A little more detail as to why the other solutions didn't work: 1. I couldn't uninstall and then re-install because the uninstall attempted to access the original source location, which no longer existed. 2. Because of the state of my server I wasn't able to perform access the "Properties" menu option.

like image 20
Josh Avatar answered Oct 08 '22 05:10

Josh