The Backupninja backup pipeline supports backup of the following components:
cfg01
, and the metadata modelTo use the Backupninja backup pipeline, you must override the current Backupninja configuration and disable the default backup schedule. This section describes how to configure the Backupninja backup pipeline.
To configure the Backupninja backup pipeline:
Log in to the Salt Master node.
Verify that Backupninja scheduling is set to manual
:
salt-call pillar.get backupninja:client
Example of system response:
parameters:
backupninja:
client:
scheduling:
when:
- manual
If the pillars do not include the parameter above or it has a different value:
Manually override the value by adding the following block to
infra/backup/client_common.yml
.
parameters:
backupninja:
client:
scheduling:
when:
- manual
Apply the backupninja
state:
salt -C 'I@backupninja:client' state.sls backupninja
Verify that the class with the Backupninja backup Jenkins job is present in the pillar:
salt -C 'I@jenkins:client and not I@salt:master' pillar.get jenkins:client:job:backupninja_backup
If the pillars do not include the Backupninja backup pipeline:
Add the following class to cicd/control/leader.yml
:
- system.jenkins.client.job.deploy.backupninja_backup
Rerun the jenkins
state on the cid01
node:
salt -C 'I@jenkins:client and not I@salt:master' state.sls jenkins.client