Moving jenkins installation to another server.

Moving your jenkins installations to another server is not that difficult.

Basically you just install Jenkins on your new server, using the default procedure.

Once installed, make sure your new and old jenkins installations is stopped.

Once stopped, SSH into your old jenkins server, and cd into your jenkins' directory

cd /var/lib/jenkins/

Once that is done, issue the following command:

rsync -avz * <user>@<new_jenkins_host>:/var/lib/jenkins/

This will copy plugins, jobs, main jenkins config, etc, from your current directory on your local server, into your jenkins directory on your remote server.

At this point you should be able to restart your new Jenkins installation, and be good to go !

Like this article? Share it!