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¶
Prerequisites¶
- Utility helm of version 1.23 is installed on the host where backup will be created
- Utility
helmis configured to access the Kubernetes cluster where DataRobot application is running, verify this withhelm status drcommand. - Utility jq is installed
- Utility kubectl of version 1.23 is installed on the host where backup will be created
- Utility
kubectlis configured to access the Kubernetes cluster where DataRobot application is running, verify this withkubectl cluster-infocommand. - 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
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.
Usage¶
Below script takes backup of of the following 1. Configuration 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