[摘要] SVN搭建过程非常简单,不过在SVN迁移之后,浏览器中访问一直提示Could not open the requested SVN filesystem
具体错误如下:
<D:error> <C:error/> <m:human-readable errcode="2"> Could not open the requested SVN filesystem </m:human-readable> </D:error>
搜索了半天发现是apache配置上的问题,svn目录指错了,应该将SVNParentPath改成SVNPath,如下是解决办法:
<Location /> DAV svn # SVNParentPath /srv/svn/repositories SVNPath /srv/svn/repositories </Location>
svn备份和导入:
假设原repo目录为:svn_repo_old
#dump出来
svnadmin dump svn_repo_old/ > svnrepo_bak
#创建新的空repo
svnadmin create svn_repo_new
#允许apache用户可读写
chown -R apache:apache svn_repo_new
#load到新的svn上
svnadmin load svn_repo_new/ < svnrepo_bak
Pingback: 工作日誌7/20(五) | Site Title