Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Product Name

CIS-CAT Pro Dashboard

Product Version

v3

Date



Table of Content Zone
Table of Contents
minLevel3
maxLevel6
outlinefalse
stylenone
typelist
printabletrue

Problem

The CIS-CAT Pro Dashboard v3 MariaDB database and its contents (imported assessment results, tags, exceptions, user accounts) needs to be backed up and then restored at a later time, either to the existing or a new Dashboard instance of the same version.

Solution

Note

Restoring a database backup will overwrite the existing contents of the Dashboard database.
Please proceed with caution when performing this operation.

Windows

Info

It is recommended to use cmd.exe rather than PowerShell for the below operations, as PowerShell may change the formatting of the generated .sql file.

Windows Backup

  • Open services.msc

    • Stop the CCPD_Windows service

    • Ensure the MariaDB service is running

  • Launch an administrative cmd.exe prompt

  • Back up the existing databases to a single file:

    Code Block
    mariadb-dump -u root -p -x -A > C:\ccpdbackup\ccpd_db.sql

    Note: The destination directory (C:\ccpdbackup\ for example) needs to be an already existing folder.

    • -u root -p: Use the root user and supply the MariaDB password when prompted

    • -x: Lock all tables during this operation

    • -A: Export all databases to the file

  • Open services.msc and start the CCPD_Windows service to resume Dashboard again

Windows Restore

  • Open services.msc

    • Stop the CCPD_Windows service

    • Ensure the MariaDB service is running

  • Launch an administrative cmd.exe prompt

  • Restore the previously created backup from the .sql file:

    Code Block
    mariadb -u root -p < C:\ccpdbackup\ccpd_db.sql
  • Open services.msc and start the CCPD_Windows service. The backed up database contents should now appear in the current Dashboard deployment once the application startup completes.


Ubuntu 20.04

Ubuntu Backup

  • Stop the Dashboard service:
    sudo systemctl stop CIS-CAT_Pro_Dashboard

  • Ensure the MariaDB service is running:
    sudo systemctl start mariadb

  • Back up the existing databases to a single file:

    Code Block
    mariadb-dump -u root -p -x -A > /home/user/ccpd_db.sql

    Note: The destination directory (/home/user for example) needs to be an already existing folder.

    • -u root -p: Use the root user and supply the MariaDB password when prompted

    • -x: Lock all tables during this operation

    • -A: Export all databases to the file

  • Start the Dashboard service to resume the application:
    sudo systemctl start CIS-CAT_Pro_Dashboard

Ubuntu Restore

  • Stop the Dashboard service:
    sudo systemctl stop CIS-CAT_Pro_Dashboard

  • Ensure the MariaDB service is running:
    sudo systemctl start mariadb

  • Restore the previously created backup from the .sql file:

    Code Block
    mariadb -u root -p < /home/user/ccpd_db.sql
  • Start the Dashboard service:
    sudo systemctl start CIS-CAT_Pro_Dashboard
    The backed up database contents should now appear in the current Dashboard deployment once the application startup completes.

Keywords; ccpd dashboard database backup restore mariadb

Content by Label

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "sbp_fer"

Copyright © 2024

Center for Internet Security®


Page Properties
hiddentrue

Action

Name(s)

Date

Linked ticket

Jira Legacy
serverSystem Jira
serverIdb90ca2a8-9df7-3869-89db-c424866c1b16
keySUPPORT-35572

Created by

Allan Cornwell

Reviewed by

Approved by

Remove by