Backup & Restore of Enterprise Manager
Procedures for backing up the Enterprise Manager configurations and metrics data, as well as steps for restoring the system in case of failure.
Note: This is about backing up the data, configuration and collected metrics of the Enterprise Manager (EM), not the databases.
Backing up Enterprise Manager
Stop the Enterprise Manager
Go to the Enterprise Manager installation directory
Run
docker compose stopto stop the Enterprise Manager
Create a directory for backups
mkdir backupsTake a backup of all the volumes
docker run --rm --volumes-from enterprise-manager-grafana -v $(pwd)/backups/:/backups:Z alpine:latest tar -czf /backups/grafana-backup.tar.gz /var/lib/grafana/
docker run --rm --volumes-from enterprise-manager-prometheus -v $(pwd)/backups/:/backups:Z alpine:latest tar -czf /backups/prometheus-backup.tar.gz /prometheus/
docker run --rm --volumes-from enterprise-manager-supermax -v $(pwd)/backups/:/backups:Z alpine:latest tar -czf /backups/supermax-backup.tar.gz /var/lib/supermax/The backups directory now contains the data from the Enterprise Manager.
Start the Enterprise Manager
Go to the Enterprise Manager installation directory
Run
docker compose up -dto start the Enterprise Manager
Restoring Enterprise Manager Server
Stop the Enterprise Manager
Go to the Enterprise Manager installation directory
Run
docker compose stopto stop the Enterprise Manager
Restore the backup of all volumes
The backups are stored in the ~/backups/ directory.
# Clear out any existing data first
docker run --rm --volumes-from enterprise-manager-grafana -v $(pwd)/backups/:/backups:Z alpine:latest find /var/lib/grafana/ -delete -mindepth 1
docker run --rm --volumes-from enterprise-manager-prometheus -v $(pwd)/backups/:/backups:Z alpine:latest find /prometheus/ -delete -mindepth 1
docker run --rm --volumes-from enterprise-manager-supermax -v $(pwd)/backups/:/backups:Z alpine:latest find /var/lib/supermax/ -delete -mindepth 1
# Restore the data from the backups
docker run --rm --volumes-from enterprise-manager-grafana -v $(pwd)/backups/:/backups:Z alpine:latest tar -C / -xzf /backups/grafana-backup.tar.gz
docker run --rm --volumes-from enterprise-manager-prometheus -v $(pwd)/backups/:/backups:Z alpine:latest tar -C / -xzf /backups/prometheus-backup.tar.gz
docker run --rm --volumes-from enterprise-manager-supermax -v $(pwd)/backups/:/backups:Z alpine:latest tar -C / -xzf /backups/supermax-backup.tar.gzStart the Enterprise Manager
Go to the Enterprise Manager installation directory
Run
docker compose up -dto start the Enterprise Manager
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

