Difference between svnrdump dump & svnadmin dump

徘徊边缘 提交于 2020-01-01 04:08:10

问题


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 ?


回答1:


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



回答2:


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.



来源:https://stackoverflow.com/questions/27131309/difference-between-svnrdump-dump-svnadmin-dump

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!