备份 svn 到另一个 svn 存储库
我目前在一台服务器上使用一个 svn 存储库,但为了使其更加安全。我在另一台服务器上设置了另一个 svn 存储库,如何使用主服务器上的 svn 中的信息镜像辅助服务器上的 svn?
I currently use one svn repository on one server, but to make it more failsafe. I have another svn repository set up on another server, how can I mirror the svn on my secondary server with the information in my svn on my primary server?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以使用 svnsync 来自 SVN 本身,它能够复制到其他服务器,但请注意复制的存储库是只读的。最好的办法是通过 post-commit-hook 脚本将每个提交复制到备份服务器上。
You can use svnsync from SVN itself which is able to replicate to an other server, but be aware of that the replicated repository is read only. The best thing is to replicate every commit via post-commit-hook script onto the backup server.
您是否考虑过将第二个副本存储在转储中?在我看来,这是保存 svn 存储库备份的最佳方法。
在 windows 下,您可以使用以下命令:
在 linux 下,您可以使用以下命令:
也许不会直接回答您的问题,但可能是问题的不同解决方案的想法。
最好的,
斯特
did you considered storing the second copy in a dump? in my opinion is the best way of making a save backup of your svn repository.
under windowsyou can use the following command:
under linux you can use the following command:
maybe does not directly answer your question but maybe an idea for a different solution of the problem.
Best,
Ste
如果您对商业解决方案持开放态度Subversion Clustering将保持同步并允许读写集群中的所有节点。这也适用于 WAN。
If you're open to commercial solutions Subversion Clustering would keep it in sync and allow read-write at all nodes in the cluster. This also works over a WAN.
您可能会考虑使用 svk,尽管它不再积极开发。
You might consider using svk, although it not actively developed any more.