Skip to main content

Posts

Showing posts with the label Jenkins backup

Jenkins backup configuration and jobs

Hi there Backup up Jenkins configuration is very simple as you will see right now. under your $JENKINS_HOME you have several important folders. (Assuming your Jenkins installed from RPM your JENKINS_HOME=/var/lib/jenkins) one of these folders is jobs if you need to backup only the configuration of your jobs without any other information such as previous builds and artifacts you can backup only config.xml file per each job. in case you have special plugins it's better for you to backup $JENKINS_HOME/plugins folder as well. custom nodes information can be found here : $JENKINS_HOME/nodes these are necessary for manual backup strategy. in case you will need to restore Jenkins you will need to install Jenkins from scratch and extract the backed up files under the correct folder structure. better way is to look for backup plugin to integrate from your Jenkins console. for example: https://wiki.jenkins-ci.org/display/JENKINS/Backup+Plugin enjoy ...