简体   繁体   English

svnrdump dump和svnadmin dump之间的区别

[英]Difference between svnrdump dump & svnadmin dump

I need a dump of a svn repository. 我需要转储svn存储库。 I found two solutions 我发现了两个解决方案

svnrdump dump

And

svnadmin dump

svnrdump dump is the same of svnadmin dump ? svnrdump dumpsvnadmin dump相同?

If not, what are the differences between these two commands ? 如果没有,这两个命令之间有什么区别?

svnrdump generates the same dump as svnadmin dump . svnrdump生成与svnadmin dump相同的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. 简单地说,svnrdump程序基本上只是svnadmin转储和svnadmin加载子命令的网络感知风格,汇总到一个单独的程序中。

The only difference between the two is that svnadmin dump operates on a file path to the repository (ie it should be run on the same server) whereas svnrdump accepts a remote repository URL. 两者之间的唯一区别是svnadmin dump在存储库的文件路径上运行(即它应该在同一服务器上运行),而svnrdump接受远程存储库URL。

An example svnadmin dump command: 一个示例svnadmin dump命令:

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

An example svnrdump command: 一个示例svnrdump命令:

svnrdump dump http://example.com/svn/repo1 > repo1.svndump

The answer from Patrick is mostly correct, However the dumps provided are NOT the same. Patrick的答案大多是正确的,但提供的转储不一样。 svnrdump by default creates a delta encoded dump file. 默认情况下, svnrdump会创建一个delta编码的转储文件。 While svnadmin dump does not. 虽然svnadmin转储没有。 svnadmin dump needs the switch --deltas to produce matching dumps. svnadmin dump需要切换--deltas来生成匹配的转储。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM