13

I'm trying to backup my SVN respository.

My problem: I forgot where I put my repository on the hard disk.

How can I find this?

FYI: I'm using TortoiseSVN if that helps.

Jim G.
  • 338
  • 2
  • 6
  • 15

5 Answers5

25

Easy answer is to run:

find / -name 'svnserve.conf'

svnserve.conf is a file that should reside in ${REPO}/conf.

Hard(er) answer is to find out if svn has a command to find out what URL you used for you initial checkout.

Edit: for a command line svn client, the way to find the repository root (the place you checked your code out from) would be running this inside your working copy:

svn info

The line in the output that reads 'Repository Root' shows the place you checked out from and thus to the place where you repo is.

Take some time to get familiar with svn on the command line here.

wzzrd
  • 10,269
  • 2
  • 32
  • 47
7

You have several different ways of accessing a subversion repository and finding the repository is different for each:

file://

This is the easiest. This means it's on the local machine where the path says it is.

svn://

This is using svnserve. Look for the process command line on the remote server and the path specified with the -r option is prepended to the path in the url to find the repository. If there is no -r option then the path in the url is the file system path.

svn+ssh://

This is svn over ssh. The path in the url is the filesystem location on the remote server.

http:// or https://

This is svn over http or https. You need to find the virtual host in your apache configuration and look for a <Location> section that matches your url path and look for a SVNPath or SVNParentPath config line. This will tell you the location of your subversion repository.

David Pashley
  • 23,151
  • 2
  • 41
  • 71
  • I had installed svnserve as a service, and so was able to look in there for the command, in case that helps anyone. – sprugman Jul 27 '10 at 17:51
  • Another option is to try to check if there's a VisualSVN Server installed on the server machine which hosts the repository. – BornToCode Jul 20 '14 at 10:59
1

In Tortoise, choose the properties option. The top line will list the file path of the repository assuming it is direct file access.

Ryaner
  • 3,027
  • 5
  • 24
  • 32
0

From your top-level SVN checkout folder right click and select Tortoise SVN | Repo-browser. The URL to your repository will be in the box at the top of the window.

John Meagher
  • 156
  • 2
  • 3
-1
$ find -iname .svn

it should find all working copies on host

user3804598
  • 101
  • 3