镜像SVN存储库[直写代理]
我有一个位于欧洲的代码库,并从亚洲访问该代码库。代码库非常庞大,下载整个代码库(有时需要)变得很痛苦。
我想知道是否有这样的事情。
我想要一个解决方案,“我将在本地拥有一个 svn 服务器,它将与主 svn 同步并为我的团队提供服务,因为 svn 是本地托管的。”
提前致谢
穆尼姆
I have a codebase located in Europe and access this codebase from Asia. Codebase is substantially huge, downloading the whole codebase (which is required sometimes) becomes a pain.
I wanted to know whether anything like this.
I want a solution that "I will have a svn server locally which will sync with the main svn and serve my team as the svn is locally hosted."
Thanks in advance
Munim
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您还可以尝试从 SVN 1.5 开始支持的 write-through-proxy,并且工作正常。
通过此设置,您将拥有一个主存储库和一个从存储库。
从属存储库充当本地读取缓存,而提交将被代理到主服务器并同步回来。
该解决方案随 subversion / apache 一起提供。
有关更多详细信息,请参阅此 svn 开发人员博客。或者精彩的 SVN 书籍,或者最后但并非最不重要的子列车管理培训演示文稿
You can also try a write-through-proxy which is supported since SVN 1.5 and works fine.
With this setup you have a master and a slave repository.
The slave repo acts as a local read cache while commits will be proxied to your master server and synced back.
This solution comes with subversion / apache.
See this svndevelopers blog for more details. Or the superb SVN book, or last but not least the subtrain admin training presentations
这是一篇关于如何设置的非常好的文章:
http:// /wordaligned.org/articles/how-to-mirror-a-subversion-repository
总体思路是使用 svnadmin hotcopy 来进行复制,无需停机,可能是由帖子触发的-commit 挂钩,或在计时器上。
另一种选择,在这里讨论:
http://blogs.collab.net/subversion /2007/08/mirroring-repos/
是使用SVNsync做一次同步,而不是复制,使用
svnsync Synchronize
命令。Here is a pretty good article on how to set this up:
http://wordaligned.org/articles/how-to-mirror-a-subversion-repository
The general idea is to use
svnadmin hotcopy
to do the copy without down time, perhaps triggered by a post-commit hook, or on a timer.Another option, discussed here:
http://blogs.collab.net/subversion/2007/08/mirroring-repos/
Is to use SVN sync to do a sync, rather than a copy, using the
svnsync synchronize
command.尝试使用 VisualSVN Server 进行多站点存储库复制。这正是您当时正在寻找的。
多站点存储库复制支持经典的主/从复制架构,允许您在欧洲的主要代码库位置设置主存储库,并在其他位置设置多个从属存储库。
与标准直写代理解决方案相比,在多站点存储库复制功能中,
主从存储库的外观和行为就像常规的可写 Subversion 存储库,
主从之间的复制自动且透明地执行,
支持高级身份验证机制,
易于设置,开箱即用,通过 VisualSVN Server Manager MMC 控制台进行最少的配置。
了解更多信息,请访问http://www.visualsvn.com/support/topic/00068/
Try Multisite Repository Replication with VisualSVN Server. That's exactly what you were looking for then.
Multisite Repository Replication enables classic master/slave replication architecture which allows you to setup a master repository at your main codebase location in Europe with multiple slaves at other locations.
In contrast to standard write-through proxy solution, in Multisite Repository Replication feature
master and slave repository looks and acts just like a regular writeable Subversion repository,
the replication between master ans slaves is performed automatically and transparently,
supports advanced authentication mechanisms,
It's easy to setup, works out-of-the-box with minimal configuration via VisualSVN Server Manager MMC console.
Learn more at http://www.visualsvn.com/support/topic/00068/
除了svnsync之外,您还可以尝试Wandisco的商业解决方案。
Besides the svnsync, you can try the commercial solution from Wandisco.