Subversion - What do I need for backup?

I have a question about Subversion. I have always been an end user, so my knowledge of how it actually works is good, let's just say very limited (so please forgive me if this is a stupid question).

I have WAMP installed and I use it as an initial development and testing. So C:\wamp\www\ contains the code for what I'm currently working on, and I'm testing with http://localhost/template/

Then I decided to install Subversion using the instructions I found at http://www.codinghorror.com/blog/2008/04/setting-up-subversion-on-windows.html . I installed in c:\svn and created c:\svn\repository and added my project with the following command:

 svn mkdir svn://localhost/template 

Now I check C:\wamp\www\ , which means that now I have a directory structure that looks like this:

C:\wamp\www\template , which contains folders called branches, tags, trunk and website. The website folder contains the code for the project, and I'm testing with http://localhost/template/website

Now to my question

What is the physical location that svn://localhost/template saves? Therefore, when I make changes to my working copy of C:\wamp\www\template and C:\wamp\www\template them, where is it saved? Does it contain a copy of the source files?

Why I ask: I'm trying to figure out what / how to back up my repository . In my opinion, it seems to me that I only need to backup c: \ svn \ repository , but when I look there, I do not see any code.

Thanks for your help, this is much appreciated. Angie

+4
source share
3 answers

To get an idea:

Where does subversion keep your access code?

Check the question: Using Subversion, where is the "actual" source code stored?

What is the best way to back up subversion repositories?

Note the question: what is the best way to back up subversion repositories?

+3
source

The c: \ svn \ repository folder contains your checks. If you look there, you should see \ db \ revs \ - this folder contains information about the control (although not in a readable format).

You must backup c: \ svn \ repository.

+1
source

You are right, you only need to backup C: \ svn \ repository. You do not see your code because it is not stored in the directory tree. It is stored in files in the folder C: \ svn \ repository \ db \ revs.

In your working copy, you have hidden .svn folders in each folder of your directory structure. Inside these folders there is a version of your code at the moment when you did the last update of SVN or SVN Commit.

+1
source

All Articles