Why backing up OpenMetadata means backing up its database and version
For a self-hosted catalog, the metadata store is the database. Lineage, glossary terms, ownership assignments, domains, classifications and data quality results all live there, so a usable backup needs three things together: a dump of that database, the exact OpenMetadata version that wrote it, and a restore you have actually tested. Search indexes are a different matter. The search service holds a derived copy of the catalog that can be rebuilt from the database, so it is not the source of truth you need to protect. Confirm that reindexing restores search fully on the version you run before you drop search from your backup scope, because that behavior is version-specific.
The database engine decides the tooling. The bare metal prerequisites list MySQL 8.0.42 or later and PostgreSQL 15 or later as supported options, alongside Java 21 and Elasticsearch 9.x or OpenSearch 3.x. On MySQL, a logical dump with mysqldump is the usual starting point, and a managed cloud snapshot can cover point-in-time needs if your provider offers them. On PostgreSQL, pg_dump produces a logical backup, and continuous archiving supports point-in-time recovery. Your database team should confirm which of these your hosting model supports, how long snapshots are kept, and whether the restore target must match the source engine version exactly. Record the engine version alongside each backup, since you will need it at restore time.
The version pairing matters because a restored database must be opened by the OpenMetadata release that matches its schema. Keep a record of the release tag, the deployment manifest or package and the configuration file next to each dump. Before any production upgrade, take a fresh backup and rehearse the restore into a clean database at the same version, then start the application and check lineage, glossary entries and ingestion status. A backup you have never restored is an assumption, so schedule that rehearsal and treat a failed restore as a finding to fix before an incident forces the question.
Choosing a backup method: mysqldump, pg_dump or managed snapshots
This table compares mysqldump, pg_dump and managed snapshots as ways to back up the database behind OpenMetadata, covering consistency, restore granularity, point-in-time options and team effort. Read each row against the database engine your OpenMetadata deployment actually uses, then choose the method your team can run and restore on a schedule.
| Factor | mysqldump (MySQL) | pg_dump (PostgreSQL) | Managed snapshots |
|---|---|---|---|
| Consistency during writes | Logical dump can be taken without stopping OpenMetadata, but confirm the transaction options you use give a consistent snapshot for InnoDB tables | Dumps a consistent snapshot of the database as of the start of the dump, while OpenMetadata keeps writing | Crash-consistent or application-consistent depending on the provider; confirm whether writes are quiesced |
| Restore granularity | Restore whole databases or selected tables from the dump file | Restore whole databases, schemas or selected tables from the dump file | Usually restores the whole volume or instance; table-level restore depends on the platform |
| Point-in-time options | Not available from the dump alone; relies on binary logs if your team configures them | Not available from the dump alone; point-in-time recovery needs WAL archiving and a base backup | Some platforms offer point-in-time restore within a retention window; confirm the window and cost |
| Hot backup option | MySQL Enterprise Backup offers hot backups only under a MySQL Enterprise Edition license | Not applicable; pg_dump works against a running server | Provider-managed; confirm whether snapshots add I/O load or pause writes |
| Operational effort | Low to moderate: schedule the dump, store the file, test the restore | Low to moderate for scheduled dumps; higher if you add WAL archiving for point-in-time recovery | Low for the team if the platform takes snapshots; you still own retention and restore tests |
| What the team must run | Backup job, encrypted storage, restore runbook and a clean target database at the same OpenMetadata version | Backup job, encrypted storage and restore runbook; WAL archive and base backups if you need point-in-time recovery | Snapshot policy, cross-region copy if required, access control on snapshots and a documented restore path |
| Restore test evidence | Restore log and row checks against a clean database | Restore log and row checks against a clean database | Restored instance checked against the same OpenMetadata version |
How the backup procedure differs for MySQL and PostgreSQL
On MySQL, the usual logical backup is a dump of the OpenMetadata database taken with mysqldump. The dump captures schema and rows as SQL statements, so it can be replayed into an empty database. Confirm the exact options for your chosen MySQL version in the MySQL documentation, because consistency behavior depends on the storage engine and the options you pass.
- Dump command pattern. Run
mysqldumpagainst the OpenMetadata database and write the output to a file. An illustrative form ismysqldump -u backup_user -p openmetadata > openmetadata-backup.sql. Confirm the consistency options for InnoDB tables before scheduling it. - Schema and data. Confirm that the output includes table structure, rows, and any routines, triggers or events your installation uses.
- Storage. Write the file outside the database host, encrypt it at rest and limit read access to the team that operates OpenMetadata.
- Restore. Create an empty database with the character set and collation used by the original, then load the file with the
mysqlclient. Verify the charset settings after the load. - Hot backups. Enterprise Backup, part of MySQL Enterprise Edition, provides hot backups. The Community Edition sources do not describe an equivalent tool, so confirm how you will back up under write load before relying on a plain dump.
Check that the restore target runs the MySQL version your OpenMetadata release supports, and that the server version is on a supported track.
On PostgreSQL, pg_dump exports a single database, and pg_dumpall exports every database along with cluster-wide objects such as roles. OpenMetadata needs only its own database for routine backups, so pg_dump is the normal starting point. Confirm the options for your PostgreSQL major version in the PostgreSQL documentation before automating the job.
- Dump command pattern. Run
pg_dumpagainst the OpenMetadata database. An illustrative form ispg_dump -Fc -d openmetadata -f openmetadata.dump, where-Fcselects the custom archive format. Confirm the format and flags for your version. - Schema and data. The default output includes schema and data. Confirm the selected options cover every schema the installation uses.
- Continuous archiving. Point-in-time recovery needs base backups plus archived write-ahead log segments. The continuous archiving documentation describes this approach, and it is a separate procedure that needs its own testing.
- Restore. Create an empty database owned by the OpenMetadata database role, then restore with
pg_restorefrom the custom archive. Confirm the role and extension settings during the restore. - Major upgrades. The upgrading guide describes
pg_dumpallwith restore,pg_upgrade, and logical replication. Test the upgrade path on a copy, since a backup alone does not show that the upgrade will succeed.
Confirm that the restore target runs the same PostgreSQL major version that produced the dump, and that this version is still within its supported period.
When the database runs on a managed service, the provider's snapshot feature often replaces the dump commands. A snapshot copies the storage volume or instance state, and the restore usually creates a new database instance rather than overwriting the old one. The sources in this topic do not describe any specific provider's snapshot behavior, so confirm each point with your provider and with the OpenMetadata deployment documentation for your release.
- Snapshot scope. Confirm whether the snapshot is taken at the instance level, includes all databases on the instance, and whether it is crash consistent or application consistent.
- Restore target. Confirm that a restored instance keeps the engine version of the original. Changing the engine version during restore is a separate upgrade with its own checks.
- Endpoint changes. A restored instance typically has a new hostname. Plan the update to the OpenMetadata database connection settings and any service that reads them.
- Retention and cost. Confirm how the provider charges for snapshot storage and how long snapshots are kept. Retention periods are set by your policy and provider settings, not by OpenMetadata.
- Logical copies. Many teams keep a logical dump in addition to snapshots so they can restore a single database into a clean instance. Confirm whether the provider lets you export that way.
Test one full restore into a separate instance and run OpenMetadata against it before you rely on the snapshot schedule.
Why the restore must target a clean database at the same OpenMetadata version
A restore should land in an empty database running the same OpenMetadata release that produced the backup. OpenMetadata keeps its metadata in a relational database, and the schema and stored records are tied to the release that wrote them. Restoring a dump into a database that already holds tables from another run, or into a server running a different OpenMetadata build, invites duplicate objects, leftover migration state and mismatched columns. A clean target means the dump is the only source of truth for the restored state, which makes the result easier to verify and to explain to auditors.
Upgrades and restores are separate operations, and they should stay separate. OpenMetadata 2.0 includes breaking changes, such as moving embedding credentials into an llmConfiguration block and a new Databricks auth format, along with the Great Expectations 1.3 migration and rebuilt custom ingestion images. If a restore is combined with an upgrade, a failure cannot be attributed to one cause. Plan any cross-version move as its own change with a rehearsal in a non-production environment, and treat the restore as a rollback path that has already been proven.
Record the OpenMetadata release tag and the database engine version next to every backup, including the exact MySQL or PostgreSQL version string reported by the server. Store this metadata with the dump file, not only in a ticket or a wiki page, so whoever restores it years later knows which image and engine to install. Confirm the exact release tags and supported engine versions in the OpenMetadata releases page and the bare metal deployment documentation before you standardize on them.
Setting up and testing a backup and restore cycle
This sequence turns the backup procedure into a repeatable cycle: a dump or snapshot that is stored off the host, restored into a clean database at the same OpenMetadata version, and checked against the running catalog. Each step ends with a check so you know the copy is usable before you depend on it.
Inventory the database engine and version
Record which database backs your OpenMetadata deployment, its exact version, the OpenMetadata release and the host or managed service it runs on. Confirm the engine version against the OpenMetadata bare metal prerequisites or deployment docs for your release, since the database must meet the minimum for that version. Keep this record with the backup job so a restore never starts from a guess. You are done when the engine, its version and the OpenMetadata version are written down in one place your operations team can reach.
Set a backup schedule and retention
Decide how often the database is backed up and how long each copy is kept, based on how much catalog change your team can afford to lose and how far back you may need to recover. Assign an owner for the job and for failure alerts. Write the schedule and retention period into your runbook and confirm they match your organization's policy. You are done when a scheduled job exists, has an owner and writes a visible success or failure status.
Take a dump or managed snapshot
Run mysqldump or pg_dump against the OpenMetadata database, or trigger a managed snapshot if your cloud provider runs the database. Use a consistent, single-transaction method for the dump so the copy reflects one point in time. Record the exact command or snapshot identifier, the start and end time, and the file size. You are done when the command exits without errors and the output file or snapshot exists with a size that is plausible for your catalog.
Store the copy off the host
Copy the dump or snapshot to storage that is separate from the OpenMetadata server and database host, such as object storage or a backup system you control. Encrypt the copy in transit and at rest, and restrict who can read it, because catalog metadata can describe sensitive systems. Compare a checksum of the stored file with the original. You are done when the checksum matches and the copy is readable by the restore account but by no one else.
Restore into a clean database on a separate host
Provision an empty database of the same engine and major version on a separate host, then load the dump or restore the snapshot into it. Keep the OpenMetadata version identical to the one that produced the backup, because restoring into a different version is not the tested path. Restore into a database that has no OpenMetadata schema from another environment. You are done when the restore completes without errors and the table count and row counts for core tables match what the backup job recorded.
Start the service against the restored database
Point a test OpenMetadata instance at the restored database and the search service it needs, then start the service. Use a separate environment so the restore test cannot write into production. Watch the startup logs for schema or migration errors and confirm the service reports healthy. You are done when the server starts cleanly, the health endpoint responds and no startup errors appear in the logs.
Verify with the UI, API and sample records
Sign in through the UI and call the REST API to confirm the catalog loads. Check a sample of tables, glossary terms, owners, domains and lineage edges against the values recorded before the backup. If counts or lineage look stale, the search index may be out of date, so reindex the search service after restore. The reindex procedure is covered in the sibling topic on reindexing OpenMetadata search. You are done when the sampled records match and the restore is recorded as verified with the date, the backup identifier and the tester's name.
How a backup moves from the live database to a tested restore
The flow starts at the live OpenMetadata server and its database, where a backup job takes a dump or managed snapshot. The dump leaves the host for off-host storage, which keeps the copy usable if the server fails. A clean restore target running the same OpenMetadata version receives the data, and the restored service is verified. If search results look stale after restore, the verification step loops back to a reindex before the test is signed off. Check the backup file, the version match and the search results at each hand-off.
Backup path from the live database to a verified same-version restore.
Protecting backups that contain catalog metadata and credentials
An OpenMetadata database dump holds more than table names. It can contain connection details, integration settings and the access model for your whole catalog, so it deserves the same protection as the live system. The cards below cover the controls to set before the first backup runs and the checks to repeat after each change.
Encrypt dumps at rest and in transit
Every dump file and every copy moved to another site should be encrypted. Encrypt the dump in the backup job, before it lands on shared storage, so the file stays protected even if a bucket policy is misconfigured. Confirm that the transfer path between the database host, the backup host and the storage target uses TLS, and that encryption keys are stored separately from the dumps they protect. Ask your team who can read those keys.
OpenMetadata security docsTreat dumps as credential stores
The OpenMetadata database can hold connection and integration configuration for your warehouses, BI tools and pipelines. Assume a dump contains working secrets unless you have verified otherwise in your own environment. Inspect a test dump to see which configuration fields are stored in plain text and which are referenced from an external secrets manager, and rotate any credential that appears in a backup copy that is shared more widely than intended.
Restrict access to backup storage
Limit read and write access to backup buckets, volumes and backup hosts to the small group that runs restores. Separate the write permission used by the backup job from the read permission used by restore testers, so a compromised job cannot silently read older copies. Log access to the backup location and review those logs on a schedule, since a backup holding catalog and integration data is a high-value target.
Keep an admin path that survives authentication changes
OpenMetadata does not support combining SSO and basic authentication at the same time. If your identity provider fails or its configuration changes, the team may have no way in to repair the catalog. Document how an administrator signs in during a restore, including which identity provider settings apply to the restored database and who holds the emergency access process. Test that path against a restored copy, not only in theory.
OpenMetadata security docsSet retention and deletion rules
Decide how long each backup class is kept, how many restore points remain available, and when old files are destroyed. Keeping dumps indefinitely increases exposure and may conflict with your data retention policy, while deleting them too early can remove the only clean copy before an upgrade. Record the schedule in writing, confirm that deletion also removes replicas and snapshots in other regions, and verify deletion with a periodic inventory of the storage location.
Verify restore integrity after each change
Each backup should carry a checksum recorded at creation, and the checksum should be compared before a restore starts. After any change to the storage location, encryption keys or access policy, repeat a restore into a clean database at the same version and confirm that the catalog loads and that admin sign-in works. Keep a short log of these checks so the team can show an auditor when controls were last exercised.
Questions teams ask about backing up OpenMetadata
Can our own team back up and restore OpenMetadata without a partner?
Yes, if you have people comfortable with MySQL or PostgreSQL administration, a spare host that matches your production version, and time to rehearse the restore. The database holds the catalog metadata, so the core work is ordinary database backup and restore. What teams often underestimate is the proof: a backup that has never been restored into a clean database at the same OpenMetadata version is not yet a tested backup. Ask whether the people who would run a restore during an incident have actually done one, and who signs off that the restored catalog works.
What drives the cost of setting up backup and restore?
The main cost components are the time to configure backups for your database (mysqldump, pg_dump or managed snapshots), the restore host and its storage, and the time to write and rehearse the runbook. One-time work includes the first full restore test and the runbook. Recurring work includes scheduled backup checks, retention management and repeat restore tests after upgrades. Costs rise with the number of environments, stricter recovery expectations, and whether your database is managed by a cloud provider or run by your own team. Ask any quote to itemize these components separately.
How long does a restore test take for a large catalog?
The duration depends mainly on the size of the database dump, the speed of the storage and network between the backup location and the restore host, and how many steps your procedure includes, such as restarting services and checking search. No duration figure is supplied for this topic, so measure it yourself: run a restore into a clean database at the same OpenMetadata version and record each step. Run the test against a copy of your largest realistic catalog, not a small sample, and repeat it after changes to the catalog or to the version.
What does the work need from our team?
Plan for three things before work starts. First, database access with rights to create dumps or snapshots and, separately, to create and drop a restore target. Second, a restore host with the same OpenMetadata version, Java 21 and enough CPU, memory and storage for the database and search services, as listed in the bare metal prerequisites. Third, a named owner who approves the recovery objectives, schedules the restore tests and receives the results. Without that owner, tests tend to lapse after the first run.
Does the search index need to be restored too?
Confirm this against the documentation for your deployed version before you rely on it. The database stores the catalog metadata, and the search service is a separate component that holds indexed copies used for search. Teams should check whether a restored catalog needs a reindex to make search results current, and plan the time that reindex takes. Include that step in your restore test so the first time you learn about it is not during an incident.
Which backup methods should we compare before choosing one?
Compare mysqldump or pg_dump with managed snapshots from your database provider. Dumps are portable and easy to inspect, but they take longer to restore on large databases and must be consistent with the version you run. Managed snapshots are often faster to restore and simpler to schedule, but they tie you to your provider's tooling and retention settings. For PostgreSQL, also check whether point-in-time recovery is required, because that changes the backup design. Confirm current behavior for your engine version with its official documentation.
When is it worth bringing in a partner for backup and restore?
A partner is worth considering when the catalog holds metadata your organization must be able to recover on a defined schedule, when your database team is already stretched, or when the restore procedure must be reviewed as part of a compliance readiness effort. DeployOpen plans, implements, backs up, documents and supports self-hosted open-source platforms in your own infrastructure, and works from a written, fixed scope with a quote that follows from it. DeployOpen prepares systems and evidence for compliance assessments but does not issue audit reports or certifications.
What a tested restore proves and what it does not
A tested restore proves two things: the backup file can be read back into a clean database, and the OpenMetadata server starts against that database at the same version it was taken from. That is the narrow claim to write down. It shows the dump is complete and usable and that the schema and stored metadata load without error. It does not show that the catalog is correct, that every asset is searchable, or that your team can recover within a particular window. Restore duration depends on catalog size, hardware and whether search is rebuilt, so measure the time in your own environment during the test and do not promise a figure to stakeholders from someone else's run.
Several checks sit outside the restore test and need their own owners. Upgrade compatibility is one: a restore at the same version says nothing about the 2.0 breaking changes, such as the embedding credential move into llmConfiguration or the Python 3.12 ingestion image rebuild, which belong to the OpenMetadata 2.0 release notes and the upgrade plan. Connector credentials are another: restored metadata holds the definitions of your sources, but the passwords, keys or service accounts that ingestion uses live outside the database and must be confirmed separately against each source. Search also needs its own verification, since a restored database does not guarantee an index that matches it, which the reindexing procedure covers.
Before you call the procedure tested, write the result as a short record: the backup file name, the OpenMetadata and database versions, the restore target, the start-up outcome and the sign-in test performed. Then confirm which pieces were out of scope, such as ingestion runs, lineage completeness and authentication configuration, so the gap is visible to auditors and to the next engineer. Re-run the test after any change to the database engine, the OpenMetadata version or the backup tooling, and check the official OpenMetadata deployment documentation for the version you run before assuming the same steps apply.
How DeployOpen plans and tests OpenMetadata backups
DeployOpen scopes, builds, tests and documents the backup and restore procedure for OpenMetadata inside your own infrastructure, so your team can run it without guesswork. The work covers the metadata database, the restore runbook and a restore test on a clean database at the same OpenMetadata version. Engagements are fixed-scope, with ongoing support available as a retainer.
How we scope
- Confirm which database engine you run for OpenMetadata and which backup method your platform team already supports.
- Record the OpenMetadata version, deployment model and recovery point and recovery time targets you need in writing.
- Agree in writing whether search index rebuild steps, secrets and configuration files are in or out of the backup scope.
How we build
- Configure a scheduled dump or managed snapshot job for the OpenMetadata database in your infrastructure, with retention set by your policy.
- Write the restore runbook for a clean database at the same OpenMetadata version, including version checks before any data is loaded.
- Run a timed restore test on a separate environment and record the steps, errors and the result against the agreed targets.
How we hand over
- Deliver the backup configuration, restore runbook and test record so your engineers can repeat the procedure without DeployOpen.
- Walk your operators through a restore drill and capture the questions and gaps they find during the session.
- Document the version-matching rule and the point at which a restore test must be repeated after an upgrade.
How we support
- Offer ongoing support through a retainer that covers scheduled restore tests and reviews of backup job failures.
- Review the runbook when you plan an OpenMetadata upgrade or change your database engine or hosting.
- Repeat restore tests on a schedule you agree, and update the documentation with each result.

