Loading the documentation…
A deployment has two backups. Take both on a schedule and before every update.
| Part | What it holds | Size | Section |
|---|---|---|---|
| The DataMind Installer | Its database, its secrets and the deployment files it writes | Small, a few files | Back up and Restore |
| DataMind OS data | Your lake, warehouse and dashboards, in the deployment's Docker volumes | Large, grows with your data | Back up DataMind OS data |
The DataMind Installer keeps its state in two Docker volumes and one directory:
| What | Where | What is in it |
|---|---|---|
| Database | The database volume, one of the Installer's two volumes | Every deployment setting, the user accounts and their sessions, the audit trail and the job history |
| Secrets | The secrets volume, the other one | Five files, one per secret (on an older Installer, four) |
| Files | The install directory | docker-compose., the optional ., and the deployment directory |
Compose prefixes each volume with the project name, which is the install directory's name. This page
writes <install directory>, <database volume> and <secrets volume> for the real values: the
folder you deployed into and the two volumes Compose named after it. List the real names first:
docker volume ls
Check it worked. The output lists both volumes, and their names start with the install directory's name.
Back up the encryption key file with the database dump it belongs to. What each secret file does is in What lives on the host.
Keep the encryption key file with its dump. It encrypts the Azure client secret, the DataMind Platform API
key, every configuration value marked secret and every value the DataMind Installer generated,
including the DataMind OS database passwords. Without it, those values read back as empty. The next Start, Apply changes or
Update writes them empty into deployment/, an Update also generates new passwords, and the
DataMind OS services can no longer open their data. Before any of these actions, re-enter each value
in Configuration, copying it from the deployment/ in your
files archive. Re-enter the Azure client secret or the DataMind Platform API key under
System secrets: use the client_secret DataMind issued with your licence, or the API key from
Settings in the DataMind Platform console. If the key is also in the Installer's . or in
DataMind OS, the DataMind Installer picks it up again on its own.
You do not need to stop the DataMind Installer. Start when Status shows no running job.
Run every step as root, in the same shell: later steps use the variables set here. umask 077 makes
the backup directory readable by root only. Keep the archives in it, and protect them the same way
wherever you copy them.
cd <install directory> umask 077 mkdir -p /root/datamind-backup BACKUP=/root/datamind-backup DATE=$(date +%F) PGIMAGE=$(docker compose -f <install directory>/docker-compose.yml config --images | grep postgres)
The command reads the database user and name from the container, so a changed POSTGRES_USER or
POSTGRES_DATABASE_NAME still works.
docker exec <database container> sh -c 'pg_dump -U "$POSTGRES_USER" -d "$POSTGRES_DB"' \ > "$BACKUP/datamind-installer-db-$DATE.sql"
Check it worked.
head -n 3 "$BACKUP/datamind-installer-db-$DATE.sql"
-- -- PostgreSQL database dump --
The command uses the PostgreSQL image from the DataMind Installer's Compose file, which the host already has.
docker run --rm \ -v <secrets volume>:/data:ro \ -v "$BACKUP":/backup \ "$PGIMAGE" \ tar czf "/backup/datamind-installer-secrets-$DATE.tgz" -C /data .
Check it worked.
tar tzf "$BACKUP/datamind-installer-secrets-$DATE.tgz"
./ ./<secret file 1> ./<secret file 2> ./<secret file 3> ./<secret file 4> ./<secret file 5>
The order can differ. The first four files must be there, and the fifth too on an Installer that already created the install identity file.
The command adds . only when it exists.
FILES="docker-compose.yml deployment" [ -f .env ] && FILES="$FILES .env" tar czf "$BACKUP/datamind-installer-files-$DATE.tgz" $FILES
Check it worked.
tar tzf "$BACKUP/datamind-installer-files-$DATE.tgz" | grep -E '^(docker-compose.yml|\.env|deployment/\.env)$'
The output shows docker-compose., deployment/, and . when you have one.
The file records the exact DataMind Installer build. Give it to DataMind if a restore fails.
docker image inspect -f '{{.RepoTags}} {{index .RepoDigests 0}}' \
"$(docker inspect -f '{{.Image}}' <backend container>)" \
> "$BACKUP/datamind-installer-version-$DATE.txt"Then record a checksum of the four files, so you can prove the copy you restore from is complete:
(cd "$BACKUP" && sha256sum "datamind-installer-db-$DATE.sql" \ "datamind-installer-secrets-$DATE.tgz" "datamind-installer-files-$DATE.tgz" \ "datamind-installer-version-$DATE.txt" > "datamind-installer-$DATE.sha256")
Check it worked. ls / lists the ., the two . files, the . file
and the . file with today's date.
Copy these five files to storage outside this host. deployment/ holds every DataMind OS
password and, with a DataMind Platform API key, that key; the Installer's own . can hold it too.
The secrets archive holds the encryption key file. Protect the archives accordingly.
Use this procedure on the same host or on a new one. The database dump loads into an empty database volume. You never copy the old volume.
Restore the secrets volume before any docker compose up. A first start with an empty secrets
volume generates new keys, and the encrypted settings in the dump can no longer be read.
Run every step as root, in the same shell. Step 1 is for a new host only. Step 2 is for the same host only.
Copy the backup to / on this host, then set the backup location:
BACKUP=/root/datamind-backup DATE=2026-10-01 # replace with the date in your backup file names (cd "$BACKUP" && sha256sum -c "datamind-installer-$DATE.sha256")
Check it worked. Every file reads OK. A file that reads FAILED was damaged or cut short on the
way: copy it again before you continue. A backup taken before the . file was added has none;
skip the check for it.
Install Docker, as in Install in depth. Then create the shared network and sign in to the registry.
docker network inspect <network> >/dev/null 2>&1 || docker network create <network>
docker login platform. datamind. ai -u apikey, and paste the
key as the password.docker login -u <client_id> <registry>, and enter the
client_secret as the password; the registry host is in your licence details.Check it worked. docker login prints Login Succeeded.
The command first checks that both archives can be read. Then it stops the DataMind Installer and removes both volumes: a dump loaded into a database that already has tables fails part-way.
tar tzf "$BACKUP/datamind-installer-secrets-$DATE.tgz" >/dev/null \ && tar tzf "$BACKUP/datamind-installer-files-$DATE.tgz" >/dev/null \ && cd <install directory> \ && docker compose down \ && docker volume rm <database volume> <secrets volume>
Check it worked. docker volume ls no longer lists the Installer's two volumes:
docker volume ls
mkdir -p <install directory> && cd <install directory> tar xzf "$BACKUP/datamind-installer-files-$DATE.tgz"
Check it worked. ls -a in the install directory shows docker-compose. and deployment.
PGIMAGE=$(docker compose -f <install directory>/docker-compose.yml config --images | grep postgres) docker volume create <secrets volume> docker run --rm \ -v <secrets volume>:/data \ -v "$BACKUP":/backup:ro \ "$PGIMAGE" \ tar xzf "/backup/datamind-installer-secrets-$DATE.tgz" -C /data
Check it worked.
docker run --rm -v <secrets volume>:/data:ro \ "$PGIMAGE" ls /data
<secret file 1> <secret file 2> <secret file 3> <secret file 4> <secret file 5>
Compose later warns that this volume was not created by Docker Compose. The warning is harmless, here and for every volume you create by hand.
Start only PostgreSQL. It creates an empty database volume and the database named by
POSTGRES_DATABASE_NAME in the Installer's ., or the default.
cd <install directory> docker compose pull docker compose up -d postgres
Wait until docker compose ps postgres shows (healthy). Then load the dump. ON_ERROR_STOP=1
stops at the first error. Do not run CREATE DATABASE: the container already created it.
docker exec -i <database container> sh -c \ 'psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -d "$POSTGRES_DB"' \ < "$BACKUP/datamind-installer-db-$DATE.sql" echo "exit code: $?"
Check it worked. The last line reads exit code: 0, and no line starts with ERROR:. On the same
host, an error means the volume was not empty: repeat step 2. On a new host, send the first ERROR:
line to DataMind.
docker compose up -d
The one-shot migration container brings the restored schema up to the running build. Then the backend container starts.
Check it worked.
docker compose ps curl -sS http://localhost:8000/api/health
The backend container shows (healthy), and the health check answers:
{"status":"ok","db":"up"}Sign in with an account you had before the backup. Then open Status and check for updates, as in Updating.
On the same host, to return the DataMind Installer to the dump you took before an update, without touching the files or the secrets:
cd <install directory> docker compose down docker volume rm <database volume>
Then run steps 5 and 6.
Your lake, warehouse and dashboards live in the Docker volumes of the DataMind OS deployment. This procedure archives every one of them. Run it as root, in the same shell, in a maintenance window: the deployment is stopped while the archives are written. Take the DataMind Installer backup in the same window: the Installer holds the passwords of the DataMind OS databases.
Read the Compose project name, then list every named volume its containers mount. Filtering by the project label includes external volumes too.
cd <install directory>/deployment
PROJECT=$(docker compose config | awk '/^name:/{print $2; exit}')
echo "project: $PROJECT"
VOLUMES=$(docker ps -aq --filter "label=com.docker.compose.project=$PROJECT" \
| xargs docker inspect -f '{{range .Mounts}}{{if eq .Type "volume"}}{{println .Name}}{{end}}{{end}}' \
| grep -v '^$' | sort -u)
printf '%s\n' $VOLUMESCheck it worked. The first line names the project, and one volume name follows per line.
The list comes from the deployment's containers. If docker compose down removed them, it comes back
empty, and step 4 would archive nothing without an error. Stop if this prints a warning:
[ -n "$VOLUMES" ] || echo "WARNING: no volumes found"
To fill an empty list, run docker compose create in deployment: it recreates the containers without
starting them. Then run this step again.
Check the disk space. The free space on / must exceed the total of the volume sizes listed under
Local Volumes space usage:
docker system df -v df -h /root
Some services mount host directories instead of volumes. List them:
docker ps -aq --filter "label=com.docker.compose.project=$PROJECT" \
| xargs docker inspect -f '{{range .Mounts}}{{if eq .Type "bind"}}{{println .Source}}{{end}}{{end}}' \
| grep -v '^$' | sort -uPut the data directories from that list in HOSTDIRS, and leave out the entries that are not data:
| Entry | What it is |
|---|---|
/ and / | Host infrastructure |
/ | The placeholder for a certificate path that is not set |
/ | The containers' own log files, which the log collector reads. The new host writes its own |
A certificate and key from Let's Encrypt are links: the files under / point into
/. Archiving the link alone restores a certificate path with nothing behind it,
so for a Let's Encrypt certificate put / itself in HOSTDIRS.
HOSTDIRS="/srv/example-data" # replace with your data directories, separated by spaces
A file-level copy of a database is consistent only while the database is stopped. Click Stop on Status, or run on the host:
cd <install directory>/deployment docker compose stop
Check it worked. docker compose ps lists no running services.
DATE=$(date +%F)
OSBACKUP=/root/datamind-backup/os-$DATE
PGIMAGE=$(docker compose -f <install directory>/docker-compose.yml config --images | grep postgres)
umask 077
mkdir -p "$OSBACKUP"
printf '%s\n' $VOLUMES > "$OSBACKUP/volumes.txt"
docker ps -aq --filter "label=com.docker.compose.project=$PROJECT" \
| xargs docker inspect -f '{{.Config.Image}} {{.Image}}' | sort -u > "$OSBACKUP/images.txt"
for v in $VOLUMES; do
docker run --rm \
-v "$v":/data:ro \
-v "$OSBACKUP":/backup \
"$PGIMAGE" \
tar czf "/backup/$v.tgz" -C /data .
done
printf '%s\n' $HOSTDIRS > "$OSBACKUP/hostdirs.txt"
for d in $HOSTDIRS; do
tar czf "$OSBACKUP/host$(echo "$d" | tr / _).tgz" -C / "${d#/}"
done
(cd "$OSBACKUP" && sha256sum *.tgz *.txt > SHA256SUMS)images. records the build each service ran. Image tags move with every release, so a restore
compares against this file to tell whether it pulled the same build. SHA256SUMS lets the restore
prove that every archive arrived complete.
Check it worked. One archive exists per volume, and both counts match:
ls -lh "$OSBACKUP" wc -l < "$OSBACKUP/volumes.txt" ls "$OSBACKUP"/*.tgz | grep -v '/host_' | wc -l
Click Start on Status, or run on the host:
cd <install directory>/deployment docker compose start
Copy $OSBACKUP off the host with the DataMind Installer backup.
On a new host, restore the volumes before the deployment starts for the first time. A service that starts on an empty volume fills it with new files, and the archive would then be unpacked on top of them.
Run every step as root, in the same shell. Step 2 is for the same host only.
OSBACKUP=/root/datamind-backup/os-2026-10-01 # replace with your backup directory PGIMAGE=$(docker compose -f <install directory>/docker-compose.yml config --images | grep postgres) (cd "$OSBACKUP" && sha256sum -c SHA256SUMS)
Check it worked. Every file reads OK. A file that reads FAILED was damaged or cut short on the
way: copy it again before you continue. A backup taken before SHA256SUMS was added has no such file;
check it with tar tzf on each archive instead.
Remove the containers and each volume you restore. docker compose down keeps the volumes. The loop
removes a volume only after tar tzf has read its archive.
cd <install directory>/deployment docker compose down for v in $(cat "$OSBACKUP/volumes.txt"); do tar tzf "$OSBACKUP/$v.tgz" > /dev/null && docker volume rm "$v" done
for v in $(cat "$OSBACKUP/volumes.txt"); do
docker volume create "$v"
docker run --rm \
-v "$v":/data \
-v "$OSBACKUP":/backup:ro \
"$PGIMAGE" \
tar xzf "/backup/$v.tgz" -C /data
doneCheck it worked. docker volume ls lists every name in volumes..
Each directory returns to its original path.
for d in $(cat "$OSBACKUP/hostdirs.txt"); do tar xzf "$OSBACKUP/host$(echo "$d" | tr / _).tgz" -C / done
Check it worked. docker compose ps in deployment shows every service Up, and your users see
their data.
No. Back it up yourself with Back up DataMind OS data. It archives every volume of the deployment in one loop.
The database dump and the secrets archive. See the encryption key warning.
Not for the DataMind Installer backup: wait for any running job to finish, then run it. Stop the DataMind OS deployment while its volumes are archived, then start it again.
After a restore, the DataMind Installer starts with new keys and everyone is signed out. Re-enter the values as the encryption key warning describes, before any Start, Apply changes or Update.
It is the install's identity for its License Key. Restored with the rest of the secrets volume, the License Key keeps working on the new host. Without it, the platform refuses the key until DataMind resets its binding; see Secrets and registry access.
Yes. The restore runs on the new host too: follow the same steps and skip the one marked same host only; Disaster recovery gives the order for a new host.
Yes. It holds docker-compose., the optional . and the whole deployment directory, so
deployment/ is in it. The secrets archive stays separate: restore it with the database dump, or
the encrypted values cannot be read.