service jenkins stopui
压缩包:tar -czvf /tmp/xx.tar.gz --exclude=“workspace” --exclude=“.m2" --exclude=builds /var/lib/jenkinsspa
Copy over xx.tar.gz to the fresh jenkins server. Adjust your systems paths configuration.server
/etc/init.d/jenkins stopjenkins
解压包:tar -xvzf xx.tar.gzit