How to recover a svn server from local checkouts

核能气质少年 提交于 2020-01-21 08:54:07

问题


Our svn server has accidently lost its all data, and our svn repository files are lost. Currently we have only local checkouts of the svn repository, is there any way to recover the svn repository?


回答1:


The whole svn history is in the server, so you cannot recover it from your checkouts. The only thing you can do is create a new repository and commit the code so you can start again.

In the future I would recommend you to keep a copy of you repository. Take a look to the svn dump command.




回答2:


By any chance do you use TortoiseSVN as your SVN client?

TortoiseSVN caches log data from repositories it communicates with. Click Log Caching/Cached Repositories, and from there you can "Export" cached log data in .CSV format.

Granted, this is not resurrecting a dead repository, (which is not possible using only a working copy) but perhaps some log data would be beneficial to you to see your former repository's change history.



来源:https://stackoverflow.com/questions/9757487/how-to-recover-a-svn-server-from-local-checkouts

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