8

I need to take a backup of SVN repository on local machine with full history so that I can compare revisions and see comments after deleting the repository from server. I am using TortoiseSVN as client and unfuddle as repository server. Actually my account will be expired from unfuddle withing few days and I need to get the repo on my local system for further process.

How should I move?

abatishchev
  • 98,240
  • 88
  • 296
  • 433
Tausif Khan
  • 2,228
  • 9
  • 40
  • 51
  • You have no access to repo files themselves, right? – abatishchev Nov 21 '11 at 07:34
  • I have the access currently but in future I will not. And now I am to take the backup on local machine. – Tausif Khan Nov 21 '11 at 07:50
  • If you have access to the repo itself (not just read-write acces via svn interface), but data files - you can just copy them locally and you will get a local repo equal to the remote one. – abatishchev Nov 21 '11 at 09:00

4 Answers4

7

You can use svnsync to download a full copy of the repository including history. It basically just copies every changeset to a local path of your choosing. I have used this for backup in the past, and it works like a charm.

There is a tutorial that explains how to do this on Windows: http://creekcodes.blogspot.com/2010/02/how-to-svnsync-on-windows.html

Steve Rukuts
  • 9,167
  • 3
  • 50
  • 72
  • Do this need to first create a repo on my local machine? I mean svn server should be setup to my local machine first then create a repo and then sync it?? – Tausif Khan Nov 21 '11 at 07:54
  • You must create a new repo on your local machine. I have updated my answer with a tutorial which explains how this is achieved on Windows. – Steve Rukuts Nov 21 '11 at 08:08
1
Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Lazy Badger
  • 94,711
  • 9
  • 78
  • 110
0

You can use svnrdump which is since version 1.7 available in the original Subversion distribution and thus fully supported.

This tool is similar to svnadmin dump but dumps remote repositories. For how to use, see this answer.

Davor Josipovic
  • 5,296
  • 1
  • 39
  • 57
-1

WordAligned gives some tips and three ways of doing a mirror of a svn repository - ways one could also use for backup. Have a look at this link.

Momergil
  • 2,213
  • 5
  • 29
  • 59