Repository navigation
Conversation
Document snapshot recovery and verified logical backup procedures, including manual PostgreSQL metadata registration for issue #737. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 17ca83b9-e369-4644-bdb1-7302fc5d4f56 Signed-off-by: German <geeichbe@microsoft.com>
Apply editorial updates and explain that logical archives preserve index definitions while restore rebuilds the indexes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 17ca83b9-e369-4644-bdb1-7302fc5d4f56 Signed-off-by: German <geeichbe@microsoft.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a backup and restore tutorial covering:
mongodump/mongorestore, with archive examples and consistency boundaries.pg_dump/pg_restoreadministrator workaround: manually register collection/index metadata and ID sequences, verify archive contents, and restore in phases to avoid generated maintenance-job conflicts.Reference documentdb/documentdb#737 as work to simplify PostgreSQL backup, not a prerequisite for following the manual procedure. Explain that standalone
pg_extension_config_dump()calls are not allowed and clearly label the direct system-catalog update as a superuser workaround.End-to-end verification
Used two isolated Podman containers with the latest public image as of November 20, 2026:
ghcr.io/documentdb/documentdb/documentdb-local@sha256:5da68829e51e55d32ccf6fb09e5733716c312a823a986976cbf817867cc3b299Environment: DocumentDB
1.2-0, PostgreSQL17.12,pg_cron1.6, Linuxarm64, Database Tools100.18.0.mongodump/mongorestore: five documents restored, zero failures, and the same gateway assertions passed.Snapshot instructions follow the operator's published documentation; a Kubernetes snapshot recovery was not exercised in this test.