备份具有完整历史记录的 SVN 存储库
我需要在本地计算机上备份具有完整历史记录的 SVN 存储库,以便在从服务器删除存储库后可以比较修订并查看注释。我使用 TortoiseSVN 作为客户端,并使用 unfuddle 作为存储库服务器。实际上,我的帐户将在几天内因解散而过期,我需要在本地系统上获取存储库以进行进一步处理。
我应该如何移动?
I need to take a backup of SVN repository on local machine with full history so that I can compare revisions and see comments after deleting the repository from server. I am using TortoiseSVN as client and unfuddle as repository server. Actually my account will be expired from unfuddle withing few days and I need to get the repo on my local system for further process.
How should I move?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以使用 svnsync 下载存储库的完整副本(包括历史记录)。它基本上只是将每个变更集复制到您选择的本地路径。我过去曾用它进行备份,它的作用就像一个魅力。
有一个教程解释了如何在 Windows 上执行此操作: http://creekcodes .blogspot.com/2010/02/how-to-svnsync-on-windows.html
You can use svnsync to download a full copy of the repository including history. It basically just copies every changeset to a local path of your choosing. I have used this for backup in the past, and it works like a charm.
There is a tutorial that explains how to do this on Windows: http://creekcodes.blogspot.com/2010/02/how-to-svnsync-on-windows.html
您可以使用
svnrdump
,自版本 1.7 起可在 原始颠覆分发,因此得到完全支持。该工具类似于 svnadmin dump ,但转储远程存储库。有关如何使用,请参阅此答案。
You can use
svnrdump
which is since version 1.7 available in the original Subversion distribution and thus fully supported.This tool is similar to
svnadmin dump
but dumps remote repositories. For how to use, see this answer.WordAligned 提供了一些技巧和三种制作 svn 存储库镜像的方法 - 也可以用于备份的方法。请查看此链接。
WordAligned gives some tips and three ways of doing a mirror of a svn repository - ways one could also use for backup. Have a look at this link.