In this article, we are going to check out how to take a backup
of our Jenkins jobs, plugin, configuration, logs and steps to restore them.
To support the backup Jenkins provides the backup plugin which
is used to take the backup of all Jenkins related configuration.
To know more about this plugin click here.
To Setup Jenkins Backup plugin we need to follow below steps:
1) Login into Jenkins.
2) Navigate to Manage
Jenkins-->Manage Plugin, under the available section search for Backup and
install it.
3) After installation
again Go back to Manage Jenkins and search the option for Backup Manager.
4) Click on the Setup
option.
5) Provide the path of
Backup directory, file format in which we want to store the information and
click on save.
6) Now Click on Backup
Hudson Configuration link from backup manager page to start backup.
7) Once the backup is
completed we will get a screen like below.
8) This backup
information can also be validated in our local machine.
9) To Recover from a
backup we need to use the option of Restore Hudson configuration from Backup
Manager Screen.