Back up the Dogtag server files and database

Back up the Dogtag server files and databaseΒΆ

After you complete Prepare for the Dogtag backup and restore, you can perform the Dogtag backup.

Warning

The content of a Dogtag database is tightly connected with the content of a Barbican database running on a Galera cluster. Therefore, we recommend running backups of Dogtag and Barbican simultaneously. For this reason, the Backupninja backup pipeline is triggered to back up Dogtag always once the backup of a Galera cluster using the Galera database backup pipeline is finished.

To back up the Dogtag server files and database:

  1. Verify that you have completed the steps described in Prepare for the Dogtag backup and restore.

  2. Select one of the following options:

    • Create an instant backup of the Dogtag files and database automatically as described in Create an instant backup using Backupninja pipeline.

    • Create an instant backup of the Dogtag files and database manually:

      1. Log in to the Salt Master node.

      2. Run the backup script:

        salt -C 'I@dogtag:server:role:master' cmd.run "su root -c 'backupninja --now -d'"