在没有转储文件的情况下恢复 SVN 存储库

发布于 2024-07-26 21:53:07 字数 339 浏览 5 评论 0原文

我有一个旧存储库,没有转储文件。 不过,我确实拥有完整的存储库,并且希望能够在新系统上运行它。

我尝试阅读 服务器故障后从目录备份中恢复 svn给了我希望,但似乎对我不起作用。 每当我将 TortoiseSVN 或 svnadmin 指向存储库文件夹来检查它时,它都会报告“没有这样的修订版 1”,尽管 db 文件夹中有 130 转。

您能提供的任何建议将不胜感激。

托尼

I have an old repository that I have no dump file for. I do have the complete repository, though, and am hoping that I can get it running on a new system.

I tried reading Recover svn from directory backup after server failure which gives me hope, but doesn't seem to have worked for me. Whenever I point TortoiseSVN or svnadmin at the repository folder to examine it, it reports "No such revision 1" despite there being 130 revs in the db folder.

Any advice you could offer would be greatly appreciated.

Tony

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

最舍不得你 2024-08-02 21:53:08

这个博客文章提到了错误消息,请遵守不同的修订号。

我注意到该错误声称
修订版 296 并不存在,事实上,
当我打开 db/revs 文件夹时
只上升到295。完全
疯狂猜测,我打开了 /current 文件
并注意到它有 296
其修订号,所以我假设
这是指向最新的指针
修订,但数据从未成功
到服务器...我修改了号码
到 295 一切立即完成
开始工作了。

不过,这有点黑客行为。

This blog post mentions the error message, abide with a different revision number.

I noticed that the error claimed that
revision 296 did not exist and indeed,
when I opened the db/revs folder it
only went up to 295. With a completely
wild guess, I opened the /current file
and noticed that it had the 296
revision number on it, so I assumed
this is the pointer to the latest
revision, but the data never made it
to the server... I modified the number
to 295 and everything immediately
started working.

That's a bit of hack though.

倚栏听风 2024-08-02 21:53:07

您始终可以使用“但是,我怀疑您会成功”来创建转储文件,

svnadmin dump [PATH_TO_REPO] > newDump.dmp

因为错误消息表明您的修订有问题。

db/revs-dir 中是否有一个名为“1”的文件?

you can always create a dumpfile by using

svnadmin dump [PATH_TO_REPO] > newDump.dmp

However, I doubt you will succeed as the error message indicates that there is simply something wrong with your revisions.

Is there an file called "1" insinde the db/revs-dir?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文