Basic steps
What does the backup and restore process involve for a Jenkins-based deployment?
The basic steps for backup:
-
Determine what you want to backup using Explaining $JENKINS_HOME.
-
Determine how often you want to backup your
$JENKINS_HOME
. -
Determine how you want to schedule the backup (cron is recommended if available).
-
Consider our Best practices for backup and restore.
-
If you are running CloudBees CI, decide between performing manual backups or using the CloudBees Backup Plugin. Other deployments should perform manual backups.
For the restore process:
-
Consider our Best practices for backup and restore.
-
If you performed a manual backup, restore $JENKINS_HOME manually.
-
If you are using CloudBees CI, you can use the CloudBees Backup Plugin to create a job to recover from backup.
-
If you are running CloudBees CI on AWS, refer to Backup and restore on AWS for additional information.
-
If you need to restore jobs to a different Jenkins instance ID, follow the procedure in the Restoring credentials section.