Skip to content

Prerequisites tools to install

This operation can be executed from any macOS or GNU/Linux machine that has enough space to store the backup.

Prerequisites

  • Utility helm version 1.23 is installed on the host where the backup will be created.
  • Utility helm is configured to access the Kubernetes cluster where the DataRobot application is running. Verify this with the helm status dr command.
  • Utility jq is installed.
  • Utility kubectl version 1.23 is installed on the host where the backup will be created.
  • Utility kubectl is configured to access the Kubernetes cluster where the DataRobot application is running. Verify this with the kubectl cluster-info command.
  • Utility pg_dump:
  • DataRobot 11.0: Use version 12 of pg_dump on the host where the backup is created.
  • DataRobot 11.1 or newer: Use version 14 of pg_dump on the host where the backup is created.
  • Utility mongodump version 100.6.0 is installed on the host where the backup is created.

Custom certificates backup

Back up the custom certificates.

DataRobot application charts allow you to define custom certificates at application installation time. If the cluster configuration includes such definitions, back them up as well. Check if there is a globals.certs section in the cluster configuration (you can get it with helm get values dr). If it exists, it looks like:

globals:
  certs:
    - secret: rabbit-cert
      path: rabbit/rabbit-cert.pem

In the example above, there is a Kubernetes secret named rabbit-cert. There could be more than one such secret. If your configuration includes any of them, back up each individually. Using the name rabbit-cert from the example output, the backup command is the following:

mkdir -p ${BACKUP_LOCATION}/secrets/certs
kubectl -n $DR_CORE_NAMESPACE get secret rabbit-cert -o jsonpath='{.data.*}' > ${BACKUP_LOCATION}/secrets/certs/<secret_name.crt>

Note

The above command is included in the script below, but if there are multiple secrets, manually back up the certs before running the script.

Usage

The following link provides a script that backs up the following:

  1. Configuration
  2. Secrets
  3. PostgreSQL
  4. MongoDB

Copy the script available in the datarobot-oss repo. Make sure to pass the DR_NAMESPACE value as an argument and the BACKUP_LOCATION, which is the backup directory that you created to store backups.