简体   繁体   English

使用svn-git的SVN复制

[英]SVN replication using svn-git

I am facing a problem of syncing two svn servers (one inside and one outside of the firewall). 我面临同步两个svn服务器(防火墙内部一台和外部一台)的问题。 After googling around I found out that svn-git is probably the best alternative. 谷歌搜索之后,我发现svn-git可能是最好的选择。

So the plan is to have an A (inside firewall) and B (outside in the DMZ) svn servers. 因此,计划是使用A(内部防火墙)和B(在DMZ外部)svn服务器。 Then to checkout some folders from A to a git repo then push the changes to B. Afterwards I pick the changes from B into a git and push the changes to A. 然后将某些文件夹从A检出到git存储库中,然后将更改推送到B。然后,我将B中的更改选择到git中,然后将更改推送到A。

Everything has to be done from server A since A is not visible from B. It would be nice to have hooks, but I can just do it once a minute using cron, the load on servers is not high. 一切都必须从服务器A完成,因为在B中看不到A。拥有钩子会很好,但是我只能使用cron每分钟执行一次,服务器上的负载并不高。

Have you got some advice? 你有什么建议吗? Can it work? 能行吗

Regards! 问候!

I don't think git is an alternative at all, not to mention best, given that it can't represent many subversion concepts. 我认为git根本不能替代,更不用说了,因为它不能代表许多颠覆概念。 I'd suggest SVK , which is decentralized version control tool built on top of subversion. 我建议使用SVK ,它是建立在Subversion之上的分散版本控制工具。 Or if you just need mirror, svnsync might be enough (but I suspect it's not, since it's subversion't own tool and you probably know it when you considered git). 或者,如果您只需要镜像,则svnsync可能就足够了(但是我怀疑还不够,因为它不是subversion的工具,在考虑git时您可能知道)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM