Paragon Insights Configuration – Backup and Restore
Back Up the Configuration
To back up the current Paragon Insights (formerly HealthBot) configuration:
Back Up Helper Files
Helper files are the python, yaml, or other externally created files whose tables are referenced in iAgent sensor definitions within rule definitions.
-
Select the Administration > Backup option from the left-nav bar.
-
Click the BACKUP HELPER FILE button.
Paragon Insights creates a tar archive that you can save to your computer.
Restore the Configuration
To restore the Paragon Insights configuration to a previously backed up configuration:
Restore Helper File
To restore previously backed up helper file archives:
-
Select the Administration > Restore option from the left-nav bar.
-
Click the Choose File button directly above the second line, “Select the helper backup file”.
-
Locate the backed up helper file in the file browser and click Open.
-
Click the RESTORE CONFIGURATION button to restore the helper files to Paragon Insights, or the RESTORE CONFIGURATION & DEPLOY button to restore the helper files to their original location within Paragon Insights.
Backup or Restore the Time Series Database (TSDB)
Starting with HealthBot Release 3.2.0, you can
backup and restore the TSDB separately from other
configuration elements. The backup and restore
operations for the TSDB are only available through
the Paragon Insights CLI. The backup and restore
commands are invoked by using a predefined python
script, healthbot.py
. You must
have root access to the CLI interface of the
Paragon Insights server in order to issue these
commands.
Use the following command to set the environment variable:
export HB_EXTRA_MOUNT1=/root/.kube/config
HB_EXTRA_MOUNT1 is a variable and user defined.
The generic command and the optional arguments (in square brackets) for performing backup and restore is described here with examples.
healthbot tsdb (backup|restore) [-h] [--database DATABASE] [--all] --path PATH
The required arguments for the
healthbot tsdb
command are:
-
backup
–perfom a backup operation -
restore
–perform a restore operation -
--path PATH
–create the backup file or restore the database(s) from the container atPATH
wherePATH
is HB_EXTRA_MOUNT1. -
Starting with Paragon Insights Release 4.0.0, you can use the following commands.
-
healthbot tsdb stop-services
—stop service -
healthbot tsdb start-services --port <portnumber>
—start service
Note:In Paragon Insights, the TSDB port is exposed by default. If you need to shut the TSDB port down for security reasons, you can use the
healthbot tsdb stop-services
command. External API queries to TSDB do not need the TSDB port to be exposed. However, if you use external tools such as Grafana, or you need run a query to the TSDB directly (and not through APIs), the TSDB port must be exposed. -
Optional Arguments
-h, --help show this help message and exit --database DATABASE Takes backup (or restore) of the given list of databases. Either database or all flag must be configured --all Takes backup (or restores) of all the databases. Either database or all flag must be configured
Example – Backup the TSDB and Store it in HB_EXTRA_MOUNT3
healthbot tsdb backup --path HB_EXTRA_MOUNT3
Example – Restore the TSDB from HB_EXTRA_MOUNT2
healthbot tsdb restore --path HB_EXTRA_MOUNT2
Change History Table
Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.