This section describes how to prepare your environment for the backup and restore of the Dogtag server files and database.
To prepare for the Dogtag backup and restore:
Log in to the Salt Master node.
Open the cluster Reclass level of your deployment.
Verify that the cluster/<cluster_name>/infra/backup/client_dogtag.yml
file with the Backupninja configuration for Dogtag exists. Otherwise, create
such file with the following content:
classes:
- system.backupninja.client.single
- cluster.<cluster_name>.infra.backup.allow_root_ssh
parameters:
_param:
backupninja_backup_host: ${_param:infra_kvm_node03_address}
backupninja:
client:
target:
home_dir: /srv/volumes/backup/backupninja
engine: rsync
engine_opts: "-av --delete --recursive --safe-links"
log:
color: ${_param:backupninja_color_log}
In openstack/barbican.yml
, add the client_dogtag
file if it is not
included:
- cluster.<cluster_name>.infra.backup.client_dogtag
Refresh grains:
salt -C '*' state.sls salt.minion.grains
salt -C '*' mine.update
Apply the openssh
state on the Dogtag server nodes:
salt -C 'I@dogtag:server and I@backupninja:client' state.sls openssh
Apply the backupninja
state on the Dogtag server nodes:
salt -C 'I@dogtag:server and I@backupninja:client' state.sls backupninja
Apply the backupninja
state on the Backupninja server node:
salt -C 'I@backupninja:server' state.sls backupninja
Now, you can proceed with Back up the Dogtag server files and database.