Interview Prep/Jenkins/Backups, HA, upgrades & performance

What do you back up in Jenkins and what do you exclude?

IntermediateConceptBackups, HA, upgrades & performance
Answer

Back up all of JENKINS_HOME except caches and rebuildable data:

Include Exclude
config.xml, *.xml at root workspace/
jobs/ (config and builds/) caches/
secrets/, credentials.xml plugins/*/ exploded dirs (keep .jpi or rebuild from image)
users/, nodes/ war/, logs/ optional
userContent/, fingerprints/ .cache/, tools/

With config in Git (image + JCasC), the backup's real value is build history, credentials not in an external store, and secrets/.

All Jenkins questions Roadmap: Jenkins

More on Backups, HA, upgrades & performance