Hudson Master 系统的备份配置
我需要 Hudson Master 系统的备份配置
详细信息 如果 Hudson Master 系统出现故障,我们需要尽快(可能需要 3 小时)将其在不同的虚拟机上恢复。 因此,我需要开发一种方法来可靠地备份配置并重置新的虚拟机。 任何人都可以让我一步一步知道最好的方法。
谢谢
I need Backup configuration of Hudson Master systems
Detailed information
If a Hudson Master system goes down, we need to be able to bring it back up on a different VM as soon as possible (may be 3 hours). Therefore, I need to develop a way to backup the configuration and resetup a new VM reliabily. can any body let me know best way step by step.
THANKS
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
或者只使用 Hudson 备份插件?
Or just use Hudson backup plugin?
当我配置 hudson 时,我进行了以下设置:
恢复服务器实际上只是将主配置目录恢复到虚拟机并启动它。 如果您在 Windows 上运行,您还需要将其重新安装为服务,并执行让 hudson 正常工作所需的所有操作(即安装 java)。 在这种情况下,对工作中的 hudson 服务器进行映像是一个好主意,在恢复映像后恢复主服务器的根目录应该会使您的 hudson 更新到最新的备份。
When I was configuring hudson, I had the following setup:
Restoring the server really is just a case of restoring the master configuration directory to a vm and starting it up. If you're running on windows you'll also need to re-install it as a service and do all the things that you needed to do to get hudson to work in the first place (ie, install java). Imaging a working hudson server in this case is a good idea, restoring the master's root directory after restoring the image should bring your hudson up to date to the last backup.
您应该能够在 unix 上或 Windows 上的等效目录中创建 ~/.hudson 目录的副本,然后在另一台计算机上恢复该副本。
您还需要记下其他构建工具(maven/ant)、JDK、这些构建工具的配置文件(~/.m2/settings.xml)等的路径。
我已经通过这种方式将 Hudson 从一个服务器迁移到另一个服务器。
You should be able to make a copy of the ~/.hudson directory on unix or the equivalent on windows and then restore that copy on another machine.
You'll also want to make note of the paths on other builds tools (maven/ant), JDKs, config files for thos build tools (~/.m2/settings.xml) and the like.
I've migrated Hudson from server to server this way.
您可以配置执行以下操作的构建作业:
“http://:;/backup/launchBackup &"
you can configure a build job that does:
"http://<host>:<port>/backup/launchBackup &"