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

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).

Environment

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

Have more questions?

2 Comments

  • 0
    Avatar
    Iaroslav Nakonechnikov

    is there a way to make it without UI? 

  • 0
    Avatar
    Iaroslav Nakonechnikov

    ok, with jenkins-cli.jar get-job and create-job - it is possible. 
    but, where information about how to restore specific master? or all of them?

Please sign in to leave a comment.