Jenkins backup and restore
What happens if someone accidentally deletes important Jenkins configurations? Although this can be avoided using stringent user permissions, which we will see in the User administration section, nevertheless imagine a situation where the Jenkins server crashes or someone working on the Jenkins configuration wants to restore to a previous stable state of Jenkins. This leaves us with a few questions like, what to back up? When to back up? And how to backup?
From what we have learned so far, the entire Jenkins configuration is stored under the Jenkins home directory, which is C:\jenkins\
in our case. Everything related to Jenkins jobs like build logs, job configurations, and a workspace gets stored in the C:\jenkins\jobs
folder.
Depending on the requirement, you can choose to backup only the configurations or choose to back up everything. The frequency of Jenkins backup can be anything depending on the project requirement. However, it's always good to back up...