Backup, restore and encrypted recovery
Run physical backups and offline page checks
Use pg_basebackup from the matching /usr/mimus-19/bin installation to take physical backups of Mimus clusters, including instances with pg_tde, spock, pg_mysql, or Babelfish enabled:
On encrypted clusters, physical pages on disk contain ciphertext. Standard checksum tools that are unaware of pg_tde cannot inspect encrypted page payloads directly; always use the Mimus toolchain built with layer 100 / 101 storage hooks and rehearse independent restore into a separate host before relying on a backup chain.
Guard historical keys alongside WAL
Rotating a principal key re-wraps internal relation keys, while historical WAL segments and older base backups still depend on earlier principal key versions during point-in-time recovery (PITR).
- Never delete or purge retired key versions from Vault, KMIP, or file keyrings while any physical backup or archived WAL referencing them remains within your retention window.
- Store your Mimus kernel revision, extension git trees, and
SHOW mimus_required_featuresoutput in your backup manifest. See Back up, restore and migrate for full runbooks.
Logical pg_restore for single-node DocumentDB
When restoring a pg_dump archive from a single-node DocumentDB instance into a fresh target, handle pg_cron background jobs with one of two verified procedures:
- Use fresh default jobs: Run
pg_restore -N cronto skip archivedcronrows and keep the target installation’s default jobs. - Preserve archived job history: Pause job scheduling on the clean target, run
CREATE EXTENSION documentdb CASCADEand unschedule its four newly created default jobs in one transaction, restore the full archive, and resume scheduling.
Observe encrypted-WAL replication boundaries
When cluster-wide WAL encryption (pg_tde.wal_encrypt = on) is enabled on 19.0.1-r4:
- Cascading physical replication (standby streaming to another downstream standby) is unsupported.
- Standby mid-segment restart: A physical standby that restarts and re-streams from the beginning of an encrypted WAL segment is excluded in
19.0.1-r4; provision fresh base backups or evaluate plaintext WAL over TLS links when standby restarts are routine. - MSSQL temporary objects: On Babelfish instances, T-SQL
#temptables,@tablevariables, and sort/hash workfiles use ordinaryheapstorage and can reach disk in plaintext; see Temporary storage and plaintext on disk.
