https://www.cnblogs.com/cheyunhua/p/10415266.html
安装插件:ThinBackup
Setting备份目录: /var/jenkins_home
* Backup 'userContent' folder
* Backup plugins archives
* Backup next build number file
* Move old backups to ZIP files
点击备份2次,复制备份zip 文件到新容器下
新容器也需要设置备份目录 /var/jenkins_home
备份还原之后需要 URL/reload 一下才能生效
jenkins_home目录下所有文件除了,最大文件夹可以不复制workspace
(tools)
复制命令
rsync -r --exclude=/jenkins/jenkins_home/workspace /jenkins/jenkins_home /new/jenkins/jenkins_home