Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between svnrdump dump & svnadmin dump

I need a dump of a svn repository. I found two solutions

svnrdump dump

And

svnadmin dump

svnrdump dump is the same of svnadmin dump?

If not, what are the differences between these two commands ?

like image 417
R3tep Avatar asked Nov 25 '14 15:11

R3tep


People also ask

What is Svnrdump?

svnrdump joined the Subversion tool chain in the Subversion 1.7 release. It is best described as a network-aware version of the svnadmin dump and svnadmin load commands, paired together and released as a separate standalone program.

What does SVN dump do?

Description. Dump the contents of the filesystem to stdout in a “dump file” portable format, sending feedback to stderr . Dump revisions LOWER rev through UPPER rev. If no revisions are given, dump all revision trees.

What is Svnadmin?

svnadmin is the administrative tool for monitoring and repairing your Subversion repository. For detailed information on repository administration, see the maintenance section for the section called “svnadmin”.


2 Answers

svnrdump generates the same dump as svnadmin dump. According to the red book:

The svnrdump program is, to put it simply, essentially just network-aware flavors of the svnadmin dump and svnadmin load subcommands, rolled up into a separate program.

The only difference between the two is that svnadmin dump operates on a file path to the repository (i.e. it should be run on the same server) whereas svnrdump accepts a remote repository URL.

An example svnadmin dump command:

svnadmin dump C:\repositories\repo1 > repo1.svndump

An example svnrdump command:

svnrdump dump http://example.com/svn/repo1 > repo1.svndump
like image 174
Patrick Quirk Avatar answered Sep 30 '22 15:09

Patrick Quirk


The answer from Patrick is mostly correct, However the dumps provided are NOT the same. svnrdump by default creates a delta encoded dump file. While svnadmin dump does not. svnadmin dump needs the switch --deltas to produce matching dumps.

like image 35
Norman Morse Avatar answered Sep 30 '22 16:09

Norman Morse