Subversion - svnadmin 转储远程 url

ale*_*xus 5 backup svn version-control dump

我有包含多个项目的 Subversion 存储库,现在我试图将每个项目分成自己的存储库。

系统:

# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.11 (Tikanga)
# rpm -q subversion
subversion-1.6.11-12.el5_10
# 
Run Code Online (Sandbox Code Playgroud)

颠覆:

$ svnadmin dump http://svn/repo1/proj1/
svnadmin: E205000: 'http://svn/repo1/proj1/' is a URL when it should be a local path
$ 
Run Code Online (Sandbox Code Playgroud)

根据以下文档 - svnadmin—Subversion Repository Administration

由于 svnadmin 通过直接存储库访问工作(因此只能在拥有存储库的机器上使用),因此它使用路径而不是 URL 来引用存储库。

这解释了为什么它对我不起作用。还有哪些其他替代方法可以实现这一目标?

ale*_*xus 10

我想更好的解决方案之一是升级到 Subversion 1.7+

# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.0 (Maipo)
# rpm -q subversion
subversion-1.7.14-6.el7.x86_64
# 
Run Code Online (Sandbox Code Playgroud)

作为 Subversion 1.7+,具有以下内容:

svnrdump - Subversion remote repository dumper and loader
Run Code Online (Sandbox Code Playgroud)

然后可以使用以下内容:

$ svnrdump dump http://svn/repo1/proj1/ > svn.repo1.proj1
Run Code Online (Sandbox Code Playgroud)