Recovering a SVN Repository with out a dump file

倖福魔咒の 提交于 2019-12-08 08:48:33

问题


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


回答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?




回答2:


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.



来源:https://stackoverflow.com/questions/1147428/recovering-a-svn-repository-with-out-a-dump-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!