目录备份
备份目录
目录是JENKINS_HOME目录, 可以通过编写脚本结合Crontab定时任务自动备份。或者使用Jenkins的插件进行备份。
插件备份
ThinBackup
安装插件
- 介绍下使用
ThinBackup
插件进行备份, 安装插件然后重启jenkins。
配置插件
- 在系统管理, 最下方
- 配置备份
- 开始备份
- 查看备份
[root@i-sfg7loip ~]# ll /var/lib/jenkins/jenkins_back total 4 drwxr-xr-x 6 jenkins jenkins 4096 Oct 23 22:47 FULL-2022-10-23_22-47 [root@i-sfg7loip ~]# ll /var/lib/jenkins/jenkins_back/FULL-2022-10-23_22-47/ total 100 -rw-r--r-- 1 jenkins jenkins 1726 Oct 23 22:41 config.xml -rw-r--r-- 1 jenkins jenkins 156 Oct 23 22:41 hudson.model.UpdateCenter.xml -rw-r--r-- 1 jenkins jenkins 1303 Oct 16 21:06 hudson.plugins.emailext.ExtendedEmailPublisher.xml -rw-r--r-- 1 jenkins jenkins 371 Oct 16 20:22 hudson.plugins.git.GitTool.xml -rw-r--r-- 1 jenkins jenkins 12506 Oct 23 22:47 installedPlugins.xml -rw-r--r-- 1 jenkins jenkins 183 Oct 16 20:23 jenkins.model.JenkinsLocationConfiguration.xml -rw-r--r-- 1 jenkins jenkins 241 Oct 17 22:39 jenkins.plugins.git.GitHooksConfiguration.xml -rw-r--r-- 1 jenkins jenkins 357 Oct 17 22:39 jenkins.security.apitoken.ApiTokenPropertyConfiguration.xml -rw-r--r-- 1 jenkins jenkins 169 Oct 17 22:39 jenkins.security.QueueItemAuthenticatorConfiguration.xml -rw-r--r-- 1 jenkins jenkins 162 Oct 17 22:39 jenkins.security.UpdateSiteWarningsConfiguration.xml -rw-r--r-- 1 jenkins jenkins 171 Oct 14 13:16 jenkins.telemetry.Correlator.xml drwxr-xr-x 3 jenkins jenkins 4096 Oct 23 22:47 jobs -rw-r--r-- 1 jenkins jenkins 907 Oct 23 22:41 nodeMonitors.xml -rw-r--r-- 1 jenkins jenkins 326 Oct 17 22:39 org.jenkinsci.plugins.gitclient.GitHostKeyVerificationConfiguration.xml -rw-r--r-- 1 jenkins jenkins 46 Oct 23 22:40 org.jenkinsci.plugins.workflow.flow.FlowExecutionList.xml drwxr-xr-x 2 jenkins jenkins 16384 Oct 23 22:47 plugins -rw-r--r-- 1 jenkins jenkins 1014 Oct 23 22:46 thinBackup.xml drwxr-xr-x 2 jenkins jenkins 4096 Oct 14 13:16 userContent drwxr-xr-x 3 jenkins jenkins 4096 Oct 16 20:23 users
回滚备份
继续阅读
评论