大网数据广告活动
服务器运维问答

Subversion - svnadmin dump remote url

· 52CE 我爱测

I have Subversion repository that contains multiple projects, and now I'm trying to separate each project into it's own repository. system: # cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.11 (Tikanga) # rpm -q…

问题原文

原帖链接 · alexus · CC BY-SA 3.0

I have Subversion repository that contains multiple projects, and now I'm trying to separate each project into it's own repository.

system:

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

subversion:

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

according to following document - svnadmin—Subversion Repository Administration

Since svnadmin works via direct repository access (and thus can only be used on the machine that holds the repository), it refers to the repository with a path, not a URL.

that explains why it didn't work for me. What other alternatives ways to accomplish that?

已采纳解答

原帖链接 · alexus · CC BY-SA 4.0

I guess one of the better solution would be to upgrade to Subversion version 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
# 

As Subversion 1.7+, has following:

svnrdump - Subversion remote repository dumper and loader

And then one can use following:

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

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2015-02-19)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。