Subversion – svnadmin转储远程URL

我有Subversion版本库,其中包含多个项目,现在我试图将每个项目分离到它自己的存储库。

系统:

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

颠覆:

 $ svnadmin dump http://svn/repo1/proj1/ svnadmin: E205000: 'http://svn/repo1/proj1/' is a URL when it should be a local path $ 

根据以下文件 – svnadmin – Subversion Repository Administration

由于svnadmin通过直接的资源库访问工作(因此只能在拥有资源库的机器上使用),它使用一个path而不是URL来引用该资源库。

这解释了为什么它不适合我。 还有什么其他的替代方法来完成这个?

我想更好的解决scheme之一是升级到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 # 

作为Subverison 1.7+,有以下内容:

 svnrdump - Subversion remote repository dumper and loader 

然后可以使用以下内容:

 $ svnrdump dump http://svn/repo1/proj1/ > svn.repo1.proj1