What a complete midPoint backup must include
A production midPoint has to be recoverable after hardware loss, a bad change or a failed upgrade, and that only works if the backup captures three linked parts: the PostgreSQL repository and audit database, the keystore that holds the encryption keys, and the midPoint home directory with its configuration. A database dump alone is an incomplete backup. Evolveum's encryption documentation states that anyone with access to the database or its backups cannot read encrypted values such as passwords, because the key lives in the keystore rather than the database. A restored database without the matching keystore therefore holds credentials, connector secrets and other protected values that midPoint cannot decrypt, and the restored system will not work as expected.
Teams need this work at three points: before go-live, so that a recovery path exists before real identities depend on the system; before every upgrade and repository change, so that a known-good state can be restored if a migration fails; and on a recurring schedule, so that the recovery point stays close to the current state. For each part, confirm where it is stored, who can read it, and how it is kept in step with the others. The database and keystore must come from the same point in time, and the keystore should be stored separately from the database backups so that one copy does not expose both the data and the key. Confirm the exact file locations and the keystore handling in your own installation with the midPoint documentation for your release, since these depend on how the deployment was built.
A backup that has never been restored is an untested assumption. Plan a restore test into a separate environment that starts midPoint from the restored database, keystore and home directory, then check that a known administrator can sign in, that connector configurations work and that encrypted credentials resolve. PostgreSQL's own documentation describes continuous archiving and point-in-time recovery as separate options from a simple dump, so decide which recovery method your team will rely on and test that method specifically, not just the export.
Which components hold state and where each lives
A midPoint installation keeps its state in several places that must be captured together. Losing any one of them can leave a restored system unable to decrypt data, rebuild its configuration or reproduce its audit trail, so each component needs its own backup plan.
PostgreSQL repository database
The repository holds midPoint objects such as users, roles, resources, tasks and assignments. It is the primary state of the system, and a backup taken without it restores nothing useful. Confirm with your DBA which backup method you use, such as logical dumps or physical base backups with WAL archiving, and confirm that the database version matches what your midPoint release supports.
PostgreSQL archiving docsSeparate audit database
If your deployment writes audit records to its own database, that database is a separate state store with its own retention and size. Backing up only the repository leaves audit history missing from a restore. Check whether your installation uses a separate audit database, and if so, back it up on the same schedule so both databases match the same point in time.
Keystore with encryption keys
The keystore holds the keys that protect encrypted values such as passwords stored in the database. Evolveum documents that anyone with access to the database or its backups cannot read these values without the key, so the keystore must be backed up as carefully as the database and stored separately from it. Confirm its location and access permissions in your installation.
Encryption and keys docsMidpoint home directory
The midPoint home directory holds configuration files that define how the system starts, connects to its database and loads its initial settings. Without it, a restored database may not start with the same setup. Record the home directory path, its file ownership and any environment overrides in your runbook, and verify them in your own environment before relying on them.
Custom extensions and libraries
Schema extensions, custom function libraries, GUI customizations and any overlay code are files you added on top of the standard product. A standard midPoint package does not contain them, so they must come from your version control or build artifacts. Keep them in version control and confirm that each one matches the midPoint version in the restored environment.
External secrets and certificates
Configuration often refers to secrets and certificates held outside midPoint, such as connector bind passwords, TLS certificates and credentials in a vault. These references break silently if they are missing after a restore. List every external reference during backup planning, record where each secret is stored, and include those stores in your disaster recovery procedure.
Why the keystore is as important as the database
A midPoint database backup alone cannot recover encrypted values. midPoint stores sensitive values such as passwords in encrypted form, and the key that decrypts them lives in the keystore, not in the PostgreSQL repository. Evolveum's encryption documentation describes this separation, which means anyone who obtains the database or its backups cannot read those protected values. For the person planning recovery, the same separation creates a dependency: a restored database without the matching keystore can leave encrypted attributes unreadable, even though every row came back intact. Before you call a backup complete, confirm with your own test restore that the keystore file and the database dump were captured together and that midPoint starts and decrypts a known account credential afterward. Review the Evolveum encryption documentation for the keystore's location and configuration in your version.
The keystore needs its own storage controls. Because a keystore copy unlocks what the database protects, it should not sit in the same bucket, backup job or administrator group as database dumps. Give keystore copies a separate access list, separate retention and separate audit logging, and restrict who can read them to the small group that performs restores. Keep a record of which keystore version corresponds to which database backup, so an operator is never forced to guess during an incident. Also plan for key rotation and keystore changes: a database backup taken after a key change will not match an older keystore copy, so the pairing must be tracked in the backup catalog rather than assumed.
Version alignment is the last check. Keep the keystore, the database snapshot and the midPoint release that wrote them matched in your runbook, and rehearse the full set at each upgrade. midPoint's supported release lines and Java requirements are listed in the midPoint system requirements, and the release-specific upgrade path affects when a restore target is valid. Ask your implementation partner or internal platform team to document how the keystore is protected, who holds the restore credentials and how often a paired restore is tested in a non-production environment.
How to take a consistent backup of midPoint
This sequence captures the PostgreSQL repository and audit databases, the keystore and midPoint home at the same point in time, and a record of versions and checksums that lets a team restore the platform as one unit. Each step ends with a check so the backup set can be trusted before it is needed.
Confirm midPoint and Java versions
The platform administrator records the exact midPoint version, the Java runtime version and the PostgreSQL major version before anything else changes. midPoint recommends Java 25 for version 4.11 and later and Java 21 for 4.10 and older, so the Java version must match the release in use. Restores are only reliable onto the same or a compatible stack, so write these values into the backup record. Done when the three versions are saved in the backup log and checked against the midPoint system requirements for that release.
Pause or schedule around running tasks
The administrator reviews the running and scheduled tasks in midPoint, including reconciliation, import and recompute jobs, and either lets them finish or pauses them until the backup completes. A backup taken during heavy write activity can capture related objects at different states, which makes restore harder to verify. Confirm that no task is in progress by checking the task list in the administration interface. Done when the task list shows no active writes and the change window is recorded.
Back up the repository and audit databases
The database administrator takes a consistent logical or physical backup of both the midPoint repository database and the separate audit database, using the same backup window for both. PostgreSQL offers tools such as pg_dump for a single database and pg_dumpall for a whole cluster, and the choice depends on the team's recovery method and on whether the databases are in one cluster. Confirm the tool version matches the server major version. Done when the backup files exist, are non-empty, and a listing or table-of-contents check of each dump succeeds.
Copy the keystore and midPoint home together
The administrator copies the keystore file that holds the encryption keys and the midPoint home directory with its configuration files, while midPoint is quiet and within the same window as the database backup. The keystore is required because encrypted values in the database, such as passwords, cannot be read without the key it holds. Store the keystore copy with the same access controls as the keystore itself, since anyone with the key can decrypt the backed-up data. Done when both copies exist and the file list matches the source directory.
Record versions and checksums
The administrator writes a manifest that lists the midPoint, Java and PostgreSQL versions, the backup timestamp, each file name and a cryptographic checksum for every backup and key file. The manifest lets the team confirm later that no file was altered or truncated and that the set belongs together. Store the manifest next to the backup set, not only on the primary system. Done when the checksums are recomputed from the stored copies and match the manifest.
Store copies off the primary system
The team moves the backup set, manifest and keystore copy to storage that is separate from the midPoint and database servers, and that is access-controlled and encrypted in transit and at rest. Keeping the keystore copy apart from the database backups is a common design choice, but the team must confirm who may read each location. Retention periods and copy counts should follow the organization's recovery objectives, which the team must set itself. Done when a second host or storage account can list and read every file in the set.
Confirm finer recovery with continuous archiving
If the team needs a recovery point between full backups, it should evaluate PostgreSQL continuous archiving and point-in-time recovery, which replay archived write-ahead log to a chosen moment. This is a separate capability from the full backup described above and must be configured and tested on its own. The team should confirm the achievable recovery point against its documented recovery point and recovery time objectives before relying on it. Done when the chosen approach is written down with its objectives and a test restore has been planned.
Test the restore before trusting the backup
The administrator restores the database dumps and the keystore and midPoint home into an isolated environment running the same versions recorded in the manifest, then starts midPoint and logs in with a known administrator account. A backup that has never been restored is an assumption rather than a verified recovery path. Record the outcome, the elapsed steps and any gaps, and repeat the test on a schedule the team sets. Done when midPoint starts against the restored data and the test result is filed with the backup record.
Backup methods and when each fits
This table compares the backup options for the midPoint repository and audit database, plus the keystore and midPoint home. Read each row for what it protects against, what it leaves exposed, and the situations where it fits. The main takeaway is that a standby replica adds availability but is not a backup, so a logical or base backup with archiving is still required.
| Option | What it protects against | What it does not protect against | When it fits |
|---|---|---|---|
| Logical dump (pg_dump or pg_dumpall) | Accidental deletion or corruption of midPoint objects, restored into a clean database, including across PostgreSQL versions | Changes made after the dump, and a restore that lacks the matching keystore | Small repositories, routine snapshots before upgrades, and restore tests into a scratch database |
| Base backup with continuous archiving (point-in-time recovery) | Logical damage such as a bad bulk reconciliation, by restoring to a moment just before the error | Loss of the keystore or midPoint home, and a restore that is never rehearsed | Production repositories where losing hours of changes is unacceptable and the team can run WAL archiving |
| Hot standby or synchronous replica | Loss of the primary server or its storage, with a fast switch to a second copy | Accidental deletions and bad mappings, because the standby replays them too | High availability for uptime. Pair it with a backup for recovery from mistakes |
| Audit database backup | Loss of audit records that support access certification and investigations | Restoring the main repository, since audit and repository data must be restored to matching points | Any environment where audit history is kept in a separate database and is needed for evidence |
| Keystore and encryption key file | Ability to decrypt encrypted values such as passwords stored in the repository after a restore | Nothing else. Without it, restored encrypted data cannot be read | Always. Store a copy separately with restricted access, and check that it matches the repository it was taken with |
| midPoint home configuration | Loss of configuration files, connector settings and local customizations needed to start the same deployment | Repository content, since configuration does not hold identity data | Always, alongside version-controlled configuration. Confirm which files your installation keeps outside the repository |
How PostgreSQL versions affect restores
A midPoint backup is only useful if it can be restored onto a PostgreSQL major version that is still supported. The supported versions are 18, 17, 16, 15 and 14, and PostgreSQL 14 reaches end of life on November 12, 2026. Versions 13 and earlier are unsupported. Before you choose a restore target, check the end-of-life date of the PostgreSQL version you are restoring into, because a restore that succeeds today can leave you on an unpatched database once the target ages out. Confirm the dates against the PostgreSQL versioning policy when you plan, since they are the authoritative source.
Restoring into an unsupported target is a risk you should not accept casually. It creates a database that receives no security fixes, and it can complicate any later move to a supported release. Major version changes are handled in one of three ways: a logical dump with pg_dumpall and restore, pg_upgrade, or logical replication. The PostgreSQL upgrading documentation describes each method. Logical replication can keep downtime to several seconds, but it needs careful setup and verification, so the method you choose should be tested in a non-production environment with a copy of your midPoint repository.
Pair every backup with the PostgreSQL version and the midPoint version used to take it, and record both in the backup manifest. Restoring a midPoint database into a different midPoint release is a separate decision that depends on the release's database requirements, so check the midPoint release compatibility notes and the midPoint system requirements before selecting the restore target. Confirm which Java version each midPoint release expects, and keep the keystore and midPoint home configuration matched to the same backup set.
Protecting backup copies from misuse
A backup of the midPoint database is only as safe as the keystore and the storage around it. The cards below cover the places where a copy can leak, the people who should and should not reach it, and the controls to confirm before a backup job goes live.
Keystore copies stored with dumps
The database holds encrypted values, such as passwords, but the key that unlocks them lives in the keystore. If a keystore copy lands in the same bucket, folder or backup job as a database dump, one theft exposes both halves. Confirm that the keystore is backed up through a separate path with its own storage location, and that no single restore script pulls both together by default.
Encryption docsBackup storage weaker than production
Teams often protect the live midPoint server tightly and then copy its backups to a file share or object bucket with broad read access. Backups usually hold the same identity data and credentials as production, so they need the same or stricter access rules. Check who can list, download and restore backup objects, and whether those permissions match the production hosts.
Unencrypted transfer and media
Dumps and keystore copies that travel over plain network paths or sit on unencrypted disks, tapes or removable media can be read by anyone who gets the medium. Confirm that transfers use encrypted channels, that backup storage is encrypted at rest, and that the encryption keys for the backup storage are held apart from the keystore itself.
Old keys kept after rotation
When a keystore is rotated or a key is retired, older backups still contain material that can decrypt data written under the previous key. Retaining those backups indefinitely widens the exposure window. Document how long backups that depend on each key are kept, and plan the deletion of superseded keystore copies alongside the retention schedule for database dumps.
Administrators who should not read backups
Platform administrators need to restore backups, but not every administrator needs to read their contents. A database operator who can open a dump can extract credentials and identity records that their role never exposes in the application. Separate restore rights from browsing rights where possible, and confirm that the people who can restore are named and reviewed.
Access logging and documented retention
Without logs of who read, copied or restored a backup, a misuse event cannot be reconstructed. Confirm that access to backup storage and keystore copies is logged, that logs are kept somewhere the backup administrators cannot edit, and that the retention period for backups and their logs is written down and approved by the owners of the identity data.
How to test a restore before you need one
A restore test proves that the database, keystore and midPoint home from one backup set work together in a separate environment. It produces a timed record of what came back and what did not, which is the evidence of recoverability.
Provision a separate restore environment
Build an isolated environment that matches production: the same midPoint version, the same Java version as that release requires, and a PostgreSQL server on the same major version. The environment must not reach production target systems, so connectors point at test endpoints or are disabled. Confirm the Java version against the midPoint system requirements before you install. The step is done when midPoint is installed but not yet configured to use any data.
Restore the repository and audit databases
Restore the PostgreSQL repository database and the audit database from the same backup point, using the restore method your backup design documents. If you use point-in-time recovery, replay the archived WAL files only to the target time you intend to test. Record the start and finish times for each database. The step is done when both databases open and their row counts and latest timestamps match the backup catalog entry.
Restore the matching keystore and midPoint home
Place the keystore and the midPoint home configuration from the same backup set, not from a later copy. Without the matching keystore, encrypted values in the restored database cannot be decrypted, so this is the most common cause of a failed restore. Check that the keystore file and its access permissions match the original, and that the configuration points at the restored database. The step is done when the file checksums match the backup manifest.
Start midPoint and check the startup log
Start the restored midPoint instance and read the startup log from the first line to the point where the web interface responds. Look for errors about the repository schema, the keystore or missing configuration. Any schema or version mismatch must be resolved in the test environment, and the fix must be written down for the production runbook. The step is done when midPoint reports a clean start with no unresolved errors.
Verify login and encrypted resource connections
Sign in with a restored administrator account, then open a sample of resources that store credentials. Test each connection from the resource page, which shows whether midPoint can decrypt the stored secret and reach the target. Expect failures only where the test network cannot reach a system, and document each one. The step is done when administrator login works and each sampled connection either succeeds or has a recorded, explained reason.
Run a read or reconciliation check
Run a sample read operation, such as a resource import of a small set of accounts, or a reconciliation task limited to a test resource. Confirm that the restored user and role assignments match the expected state from the backup catalog. Do not run a task that writes to a production target from the restored environment. The step is done when the sample task completes and the results agree with the recorded state.
Record timings and gaps in the test report
Write a report with the total elapsed time, the time for each restore stage, the midPoint version, the Java version, the backup identifier and every error or manual workaround. Assign an owner and a due date to each gap, and update the runbook where a step was unclear. Ask the team that owns recovery to confirm the recovery time they can accept against the measured figure. The step is done when the signed report is filed with the backup records.
Schedule tests and repeat after upgrades
Run restore tests on a fixed schedule set by your recovery objectives, and repeat the full sequence after every midPoint or PostgreSQL upgrade, because a new version can change what a restore needs. Treat a passed test as the evidence of recoverability, not the backup job log, which only shows that files were written. The step is done when the next test date is set and the upgrade checklist names the restore test as a required gate.
Common questions about midPoint backup work
What does a midPoint backup cost in effort, and who does the work?
The main cost is the time to design the backup set, automate it, and prove restores, and that work is done by whoever owns the platform. Your team pays for administrator time and storage, and a partner charges for the scoped work when it is contracted. Backup jobs themselves recur, so the cost of running them, retaining copies and reviewing failures continues after the project ends. Ask for a written scope that lists each component (PostgreSQL repository, audit database, keystore, midPoint home), the schedule, the retention period, the restore test frequency and who signs off on each deliverable. A quote follows from that scope, not from a generic price.
Can our internal team back up midPoint using this page?
Yes, a team with PostgreSQL and Linux administration skills can build the backup set from this page, provided it understands that a midPoint backup is more than a database dump. The page explains that encrypted values such as passwords depend on the key in the keystore, so the keystore and the database must be captured as a matched pair and stored under separate custody. Teams without a restore environment or without someone who can read midPoint configuration should consider a scoped engagement. Check the Evolveum encryption documentation before you assume which keys your deployment uses.
How long does a midPoint restore test take to plan, and what drives that time?
The planning time depends on how many components are in scope and how much of the environment can be copied for testing. The main drivers are the size of the repository and audit databases, whether a non-production environment with matching midPoint version and Java runtime exists, how many connectors and integration settings must be validated after restore, and whether the team has a written procedure. Restore testing also needs an agreed definition of success, such as a midPoint login, a sample user and a successful connector test. Ask the provider to state its planning assumptions and the environment it will use, because no duration can be given without them.
What must our team provide for a midPoint backup engagement?
The team must provide controlled access to the PostgreSQL servers and the audit database, custody of the keystore and its passphrase or key material, the midPoint home configuration, and a test environment where restores can run. It must also schedule maintenance windows for restore drills and name owners for approvals. Keystore custody needs particular care: the people or systems holding it should be documented, access should be logged, and copies should be stored separately from the database backups. Put each of these items in the written scope with an owner and a date, so the engagement does not stall waiting for access.
Do database replicas or storage snapshots replace midPoint backups?
No. Replicas and snapshots help with availability and fast recovery, but they do not replace a backup set that you can restore and test. PostgreSQL supports hot standby servers and replication, yet a standby replicates mistakes such as accidental deletes, and PostgreSQL does not provide automatic failover software by itself. Snapshots often capture the database without the keystore or the midPoint home, which leaves encrypted data unreadable after restore. Point-in-time recovery, described in the PostgreSQL continuous archiving documentation, is a separate capability that should be designed and tested on purpose.
How do midPoint backups change during upgrades?
A backup taken before an upgrade is a rollback point, so it must match the exact midPoint version, Java runtime and PostgreSQL version that were running when it was made. midPoint upgrades move through supported releases, and PostgreSQL major upgrades use dump and restore, pg_upgrade, or logical replication. Each method changes how the backup set should be taken and verified. Plan a fresh full backup and a restore test immediately before the upgrade window, and keep the previous set until the new version has run long enough for your team to be confident. Confirm the exact upgrade path with the midPoint releases page and your change process.
What should we ask for in a written backup scope?
Ask for a list of the components in scope, the backup schedule and retention for each one, the storage location and its access controls, how keystore copies are protected and who can retrieve them, the restore test procedure and its success criteria, and the frequency of restore drills. Also ask how the work handles upgrades, what evidence is delivered (such as restore test records and runbooks), and what the provider needs from your team. Confirm whether the scope covers the audit database and whether it includes configuration as code. A clear scope lets you compare offers fairly and lets your auditors trace each control to an owner.
Limits to confirm in your environment
The backup design for midPoint depends on details that vary by installation, version and tooling. Confirm each item below with Evolveum documentation or with a test in your own environment before you write the runbook, because a gap in any one of them can leave you with a database backup you cannot decrypt or restore consistently.
Keystore location and format
Confirm where the keystore sits in your installation and which format it uses, since the file that holds the encryption key is the piece most often missed. Check the path that your deployment actually reads, including any override set at startup, and confirm the file's permissions. Record the exact location in your runbook so the copy you take is the one midPoint loads.
Encryption docsConfiguration outside midPoint home
Confirm whether any custom configuration, connector files, scripts, function libraries or schema extensions live outside the midPoint home directory. Anything stored elsewhere will not be captured by a home directory copy. Inventory these locations on each node, including container volumes and mounted secrets, before you define the backup scope.
Compatibility with your backup tooling
Confirm that your backup product or script can capture the PostgreSQL repository, the audit database and the file-based configuration in a consistent set. Check whether it supports the file permissions and ownership midPoint expects, and whether it can restore to the same paths. Test the tool against a non-production instance before you depend on its schedule.
Consistency between database and keystore
Confirm that the database snapshot and the keystore copy come from the same moment and the same key set. A repository restored with a keystore that does not match its encrypted values will not decrypt stored passwords. Also confirm what happens to the keystore if it is rotated, so each backup set records the key version that matches its data.
Recovery time and recovery point targets
Confirm the recovery time and recovery point your organization requires for midPoint, and whether the backup frequency and PostgreSQL recovery method can meet them. Continuous archiving and point-in-time recovery change what is achievable, and they require their own storage and testing. Agree these targets with the business owners of the identity data before you choose a design.
Archiving docsHow the backup parts fit together during a restore
The restore starts from three separate backup stores: the PostgreSQL repository database, the audit database, and the keystore with the midPoint home configuration. Each one is copied back into a test environment, not production, so the restored system can be checked before anything goes live. The key hand-off is between the database and the keystore: the database holds encrypted values such as passwords, and only the matching keystore can decrypt them. Before go-live, confirm that the restored midPoint starts, that the keystore unlocks the encrypted data, and that a sample of accounts and connectors still works.
Three backup stores rejoin in a test environment before go-live.
How DeployOpen scopes and delivers midPoint backup work
DeployOpen plans and builds midPoint backup in infrastructure you control, covering the PostgreSQL repository and audit database, the keystore, and the midPoint home configuration. Each engagement is fixed-scope, with the backup set, restore procedure and test evidence agreed in writing before work starts.
How we scope
- Inventory the midPoint version, PostgreSQL version, repository and audit databases, and every node in the deployment.
- Confirm where the keystore and midPoint home configuration live, and who holds the keystore passphrase.
- Agree in writing the backup schedule, retention, storage location, and restore targets before any build starts.
How we build
- Configure scheduled database backups for the repository and audit database, with the keystore and home directory copied under separate access controls.
- Document how encryption keys are stored apart from the database, so backup copies do not expose encrypted credentials.
- Test a full restore into an isolated environment and record timings, gaps and fixes against the written scope.
How we hand over
- Deliver a runbook covering backup jobs, restore steps, key recovery, and the roles responsible for each step.
- Provide restore test records and a list of items your team must confirm in its own environment.
- Walk your operations and security staff through a restore rehearsal so they can run it without DeployOpen.
How we support
- Offer ongoing support as a retainer, including restore rehearsals after midPoint or PostgreSQL upgrades.
- Review backup coverage when the deployment changes, such as new nodes, a separate audit database or a new keystore.
- Keep the runbook current with the midPoint and PostgreSQL versions you run, and retest after each change.

