Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TortoiseSVN, how to dump a repository?

Tags:

tortoisesvn

I use Windows 7 and also I use TortoiseSVN to keep track of my code, now I want to migrate my repository to a cloud-service and the requirement is create a *.dump file, but I can't find a way to create it. Some forums say to use "svnadmin" but I can't find it also.

My question is how can I create a *.dump file with TortoiseSVN?

like image 664
lito Avatar asked Dec 12 '11 21:12

lito


People also ask

How do I export my TortoiseSVN repository?

To export single files with TortoiseSVN, you have to use the repository browser (the section called “The Repository Browser”). Simply drag the file(s) you want to export from the repository browser to where you want them in the explorer, or use the context menu in the repository browser to export the files.

What is SVN dump?

By default, the Subversion dump stream contains a single revision (the first revision in the requested revision range) in which every file and directory in the repository in that revision is presented as though that whole tree was added at once, followed by other revisions (the remainder of the revisions in the ...


2 Answers

Subversion 1.7 now has the svnrdump command line utility.

svnrdump dump https://host/repo > repo.dump

Note that this always creates a dump with deltas, which might not be what you want.

like image 195
Anton Breusov Avatar answered Oct 16 '22 06:10

Anton Breusov


TortoiseSVN ships the svnadmin utility with it. It is a command line utillity. So you will have to create a dump of your repository in the command line.

To create a dump of your repository, use

svnadmin dump C:\SVN\MyProject > C:\tmp\MyProject.dump

where C:\SVN\MyProject is the path to your SVN repo and C:\tmp\MyProject.dump is the path to the dump file, which will be created.

To import your previously made dump file into a new repository, use

svnadmin load C:\SVN\MyProject < C:\tmp\MyProject.dump

where C:\SVN\MyProject is the path to your new SVN repo and C:\tmp\MyProject.dump is the path to the dump file, which should be imported.

like image 22
Alexxus Avatar answered Oct 16 '22 05:10

Alexxus