备份配置文件的最佳实践Jenkins [英] best practice to backup config files Jenkins

查看:364
本文介绍了备份配置文件的最佳实践Jenkins的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在远程Debian 7.8上使用Jenkins.我想将Debian 7.8更新到8.7.我尝试进行更新,但一切正常,但是詹金斯(Jenkins)坏了,无法启动该服务.我尝试了一切,但找不到任何解决方案.最后,我使用了清除命令,它删除了先前的配置和构建.

I am using Jenkins on remote Debian 7.8 . I want to update Debian 7.8 to 8.7. I tried to update and it went fine however Jenkins was broken and could not start the service. I tried everything but could find any solution. Finally I used purged command and it deleted previous configurations and builds.

现在,我还原服务器并想再次更新,但是我想要配置和构建的完整Jenkins备份,因此可以从上次运行的实例还原它.

Now I restore the server and want to update again but I want a complete Jenkins backup of config and builds so restore it from last running instance.

最好的做法是尽可能简单地备份配置(减少工作量和麻烦),然后配置然后合并备份的文件.

What's the best practice to backup the configs as simple as possible (with less effort and problems) and configure and then merge the backuped files.

我必须备份哪些数据/配置文件?

Which data / config files I have to backup?

推荐答案

它带有一个简单的指令:

It comes with a simple directive:

所有设置,构建日志,工件档案都存储在JENKINS_HOME目录下.只需存档此目录即可进行备份.

All the settings, build logs, artifact archives are stored under the JENKINS_HOME directory. Simply archive this directory to make a back up.

可以在不停止服务器的情况下进行备份,但是在还原时,请务必停止服务器.

Back ups can be taken without stopping the server, but when you restore, please do stop the server.

这篇关于备份配置文件的最佳实践Jenkins的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆