Backing Up Jenkins

By Thomas Suebwicha

Written June 29, 2020

Last Edited June 29, 2020

Requirements

Install the plugin “ThinBackup” plugin in managed Jenkins. This plugin would be used as it is popular in comparison to other plugins. Alternative is to have a Jenkins job that polls periodically executing a script and saves the “jenkins_home” directory. (In references)

Plugin Settings

Once installed, go to “Manage Jenkins” > “ThinBackup”. (Likely at the bottom section)

Select Settings and configure as you wish. To get started use the following.

Backup Directory folder directs the default directory to where the main files are located. For example if you are running Jenkins from a war file then it will be created in the same working directory.

Differential backups is essentially backing up all files that have been fully configured differently from the last full backup. This creates change layers instead of creating duplication of same files.

BackUp Now

Go to the plugin and select “Backup Now”. This will create a folder with the save data.

Restore

To restore. select the “Restore” option from their plugin.

If you have configured the setting correctly to where your backups are then it should have a selection in the “restore backup from” section.

Restart the application and it should be restored.

References

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Thomas Suebwicha
Thomas Suebwicha

Written by Thomas Suebwicha

A developer wanting to share my knowledge and bring up others.

No responses yet

Write a response