service jenkins stop

压缩包:tar -czvf /tmp/xx.tar.gz --exclude=“workspace” --exclude=“.m2" --exclude=builds /var/lib/jenkins

Copy over xx.tar.gz to the fresh jenkins server. Adjust your systems paths configuration.

/etc/init.d/jenkins stop

解压包:tar -xvzf xx.tar.gz

 

posted on 2018-06-07 16:27  Rosepotato  阅读(132)  评论(0编辑  收藏  举报