Skip to content

title: Pre-requisites tools to be installed description: Prerequisites:


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

Pre-requisites tools to be installed

前提条件

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

Custom certificates backup

Backup the custom certificates DataRobot application charts allows you to define custom certificates upon the application installation time. If the cluster configuration includes such definitions, then they should be backed up also. Please check if there is globals.certs section in the cluster configuration (you can get it with helm get values dr). If it exists, then it will look 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, please backup each individually. Using the name rabbit-cert from the example output, the backup command will be 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> 

Please note: the above command is included in the below script, but if there are more than one such secrets it is recommended manually take backup of certs before running the script.

使用状況

Below script takes backup of of the following 1. 設定 2. Secrets 3. PostgreSQL 4. MongoDB

Copy the script available in datarobot-oss repo, please make sure to pass DR_NAMESPACE value as argument and the BACKUP_LOCATION which would be the backup directory that has been created to store backups