Thursday, June 20, 2019

How to back up Jenkins Jobs and Configurations

As you all know Jenkins does not use a database to store its configuration, It uses XMLs files to store. It is very important to take back up all jobs, configs, logs and plug-ins.

Jenkins thin backup plug-in is what we will be using for taking backups of Jenkins data.

Install plug-in:
It backs up all the data based on your schedule and it handles the backup retention as well.
To get started, first install the plugin.
1. Go to Manage Jenkins –> Manage Plugins
2. Click the Available tab and search for “Thin backup”



















3. install plug-in and restart Jenkins.

How to take backups?

As plug-in is installed, we need to configure how we will be doing backups in Jenkins.

1. Go to manage Jenkins->ThinBack
2. Click on settings. Enter info as needed for the backup.

3. after saving, click Backup Now link to run the back up to make sure it is creating data where needed.


4. Now you should see the back up folder.

No comments:

Post a Comment

How to Setup Self-Hosted Linux Docker Build Agent in Azure DevOps | How to configure Self-Hosted Linux Docker Agents in Azure Pipelines | Create Custom Build Agents in Azure DevOps

  Let us learn how to configure a self-hosted agent using Docker in Azure DevOps pipelines. What is an Agent? An agent is computing infrastr...