无法执行 SVN 转储 -- 错误 E720002 和格式错误 [英] Unable to do an SVN dump -- Error E720002 and format errors

查看:102
本文介绍了无法执行 SVN 转储 -- 错误 E720002 和格式错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 SVN 的新手,所以请原谅可能的简单问题.我正在尝试对我的一个项目进行 Subversion 转储:

I'm new to SVN, so forgive the possible straightforward problem. I'm trying to do an Subversion dump of one of my projects:

svnadmin dump C:\code\project1 -r 9 > repo.dmp

不幸的是,我收到此错误:

Unfortunately I'm getting this error:

svnadmin: E720002: Can't open file 'project1\format': The system cannot 
find the file specified.

它似乎在寻找 format 文件,该文件实际上位于 project1\.svn\format.这让我感到困惑,因为我希望它在 project1 的 .svn 子目录中查找,而是在根目录中查找.

It appears to be looking for the format file which is actually located at project1\.svn\format. This has me puzzled as I'd expect it to look in the .svn subdirectory of project1, but instead is looking in the root.

然后我尝试了:

svnadmin dump project1\.svn -r 9 > repo.dmp

但这导致:

svnadmin: E165005: Expected repository format '3' or '5'; found format '12'

我认为这是我的格式数据不足的问题,因为这是我阅读的常见问题.我的服务器是 repositoryhosting.com,它们在 1.7.1 服务器上.在我的客户端上,我使用 TortoiseSVN 和 SVN:

I thought this was an issue with my format being out of data since that is a common issue from what I've read. My server is repositoryhosting.com and they are on 1.7.1 server. On my client, I am using TortoiseSVN with SVN:

TortoiseSVN 1.7.4,内部版本 22459 - 64 位颠覆 1.7.2

TortoiseSVN 1.7.4, Build 22459 - 64 Bit Subversion 1.7.2

进一步阅读后,我可能会混淆一些事情,需要针对实际存储库而不是我的本地工作副本.问题是存储库位于由 repositoryhosting.com 托管的云中,svnadmin 不接受 URL 作为存储库位置,只接受本地路径.

Upon further reading, I might be confusing things and needing to go against the actual repository instead of my local working copy. Problem is that the repository is in the cloud hosted by repositoryhosting.com and svnadmin won't accept URLs as repo locations, only local paths.

希望得到一些帮助,了解正在发生的事情...

would love some help with what's going on...

推荐答案

svnadmin dump 用于在存储库(服务器端)上工作,而不是工作副本(客户端)关于格式的错误消息具有误导性,因为它会在存储库中搜索格式文件并在您的工作副本中找到同名文件.

svnadmin dump is for working on the repository(server side), not the working copy (client side) The errormessage about format is misleading as it searches for the format file in repository and finds a file with same name in your workingcopy.

如果您有兴趣获得存储库的完整备份,您可以为此使用 svnrdump.它的使用方式与 svnadmin dump 相同,但是可以从 远程 存储库获取转储:使用

If you are interested to get a full backup of your repository you can use svnrdump for this purpose. It is used the same way than svnadmin dump, however it is possible to get the dump from an remote repository: use

svnrdump  dump -r0:HEAD [URL_TO_YOUR_REPO] > Your_dumpfile.dmp

这是 SVN 1.7 的新功能

这篇关于无法执行 SVN 转储 -- 错误 E720002 和格式错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆