Loading the documentation…

Disaster recovery

The commands for each restore live in Backup and restore. This page gives the order on a new host. Run every command as root.

Warning

Keep the old host powered off or off the network. Two hosts writing one data set corrupt it.

Have this ready before you need it

ItemWhere it comes from
datamind-installer-db-<date>.sqlBackup and restore, Back up, step 1
datamind-installer-secrets-<date>.tgz, taken with the same dumpBack up, step 2
datamind-installer-files-<date>.tgzBack up, step 3
datamind-installer-version-<date>.txt and datamind-installer-<date>.sha256Back up, step 4
/root/datamind-backup/os-<date>/: one archive per volume and per host directory, plus volumes.txt, hostdirs.txt, images.txt and SHA256SUMSBack up DataMind OS data
This server's License Key, or the client_id and client_secret (the client_secret is also the Azure client secret)The License Key is under Instances in the DataMind Platform console. The client_id and client_secret are issued by DataMind with your licence
The host name users reach, its DNS record, and the certificate and key files set in SSL_CERT_PATH and SSL_KEY_PATHYour own DNS and certificate authority

Restore the DataMind Installer

Bring the new host to the System requirements. Then run the Restore steps of Backup and restore in order, skipping the steps marked same host only.

Always start the DataMind Installer with docker compose in the install directory, as the restore steps do. Started any other way, its own update cannot find it.

Check it worked. The health check answers {"status":"ok","db":"up"}, and you can sign in with an existing account.

Restore the DataMind OS data

Restore every DataMind OS volume and host directory before the deployment's first start on the new host. Follow Restore DataMind OS data, skipping the step marked same host only.

Check it worked. docker volume ls lists every name in volumes.txt.

Start the deployment

The new host has none of the DataMind OS images yet, so Start on Status stays unavailable until they are pulled. Choose one of two ways.

WayWhat it doesUse it when
Pull on the host, then StartUses the Compose file from your backup. The images are pulled by tag, so you get the backed-up version only if no release came out since the backupYou want the same version as before
Update on StatusDownloads the newest Compose file and template, then pulls and startsYou also want the newest release, and you have read its Release Notes

To bring back the version you backed up, sign in to the registry the restored Compose file names, then pull the images:

bash
docker login platform.datamind.ai -u apikey   # with a License Key; paste the key as the password
# or: docker login -u <client_id> <registry>   # with an Azure client secret
cd <install directory>/deployment
docker compose pull

A tag such as prod-latest moves with every release, so check what the pull brought before you start. The command compares each image with the build recorded in images.txt; set OSBACKUP to your DataMind OS backup directory:

bash
OSBACKUP=/root/datamind-backup/os-2026-10-01   # replace with your backup directory
while read -r image id; do
  echo "$image $(docker image inspect -f '{{.Id}}' "$image" 2>/dev/null || echo missing)"
done < "$OSBACKUP/images.txt" | diff "$OSBACKUP/images.txt" - && echo "same build"

Check it worked. The last line reads same build. Otherwise the output lists the images whose build differs: a release came out after the backup. Read its Release Notes before you start, or ask DataMind for the build you backed up. A backup taken before images.txt was added has no such file, and the version cannot be checked this way.

Then click Start on Status. Start uses the restored Compose file and sets the memory limits for this host.

Check it worked. Every long-running service shows Up, as in Updating.

Check the address

If the host name or address changed, set the platform address again in Configuration, then use Apply changes. DNS and the certificate must match the new name. See TLS and certificates.

If the host's IP addresses changed, update NATIVE_API_DENY_HOSTS and NATIVE_API_DENY_CIDRS in the same pass. They list the host's own addresses, which an ANY API connector may not call, so that a connector cannot reach the platform's internal services. Restored from the backup, they still hold the old host's addresses and no longer protect the new one. Replace them with the new host's LAN and public addresses, separated by commas (for example 10.0.0.5,203.0.113.7, and 10.0.0.0/24 for a range), then use Apply changes. The address in the platform URL is added to the list on its own.

Check it worked. After Apply changes, the toast Configuration applied appears, and the deployment's .env holds the new values:

bash
grep -E '^(PLATFORM_URL|NATIVE_API_DENY_HOSTS|NATIVE_API_DENY_CIDRS)=' <install directory>/deployment/.env

Verify what users see

Sign in to DataMind OS and open a query your users rely on.

Check it worked. The Platform URL opens the DataMind OS Welcome back! sign-in page, an existing account signs in, and the query shows data up to the time of your last DataMind OS data backup.

Questions, answered

Should I click Update to start the restored deployment?

Only if you want the newest release. To get back the version you backed up, pull on the host, compare with images.txt and click Start, as in Start the deployment.

Why is Start unavailable on the new host?

The images are not on the host yet. See Start the deployment.

Do I keep the old host running while I restore?

No. Keep it powered off or off the network: two hosts writing one data set corrupt it. Restore on the new host only.

Do I start the deployment before or after restoring the volumes?

After. Restore every DataMind OS volume and host directory before the deployment's first start on the new host. A service that starts on an empty volume fills it with new files, and the archive would then be unpacked on top of them.

What if the host name or address changed?

Set the platform address again in Configuration, replace the old host's addresses in NATIVE_API_DENY_HOSTS and NATIVE_API_DENY_CIDRS, and use Apply changes; DNS and the certificate must match the new name. See Check the address.