Create backups of controllers without executors on the built-in node

1 minute read

Issue

Best practice is to set client controllers and managed controllers with zero executors on the built-in node. However, performing backup (using the CloudBees Backup Plugin) requires an executor to run on the built-in node (backups of JENKINS_HOME).

Resolution

Instead of creating the Backup job on each individual controller, use an Operations Center Cluster Operation to perform backups of all controllers, this does not require executors on those controllers' built-in nodes.

  1. Verify Operations Center Server Cluster Operations Plugin is installed on your CJOC

  2. When on the CJOC, choose New Item and choose a name, and select Cluster Operations as the job type

  3. Select Add Operation, then controllers

  4. Select From Operations Center Root under Target controllers and Source headings

  5. Add Filter and select Client controller / Managed controller is Online

  6. Add Step and select Backup Master

  7. Decide What to backup, Where to backup and Backup retention

  8. Click the Advanced button and select a compression scheme (tar.gz or zip)

  9. Save

  10. Finally, from the sidebar, Select Run to run the new operation

  11. At successful completion, validate the backups on the controller’s [or controllers'] local directory or S3/FTP/etc. destination as specified