From 2c59ea9ecad71ee286b4e961c8a6b2325eb9cfaf Mon Sep 17 00:00:00 2001 From: Ivan Groenewold <9805809+igroene@users.noreply.github.com> Date: Fri, 22 Nov 2024 12:59:56 -0300 Subject: [PATCH] Update restore.md Add step required for arbiter nodes. Add a paragraph to clarify how it works in docker with physical restores. --- docs/usage/restore.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/usage/restore.md b/docs/usage/restore.md index 038d3dd0..da596695 100644 --- a/docs/usage/restore.md +++ b/docs/usage/restore.md @@ -195,7 +195,8 @@ To restore a backup, use the [`pbm restore`](../reference/pbm-commands.md#pbm-re After the restore is complete, do the following: - 1. Restart all `mongod` nodes. + 1. Remove the contents of the datadir on any arbiter nodes + 2. Restart all `mongod` nodes !!! note @@ -207,18 +208,18 @@ To restore a backup, use the [`pbm restore`](../reference/pbm-commands.md#pbm-re This is expected behavior of periodic checks upon the database start. During the restore, the `config.system.sessions` collection is dropped but Percona Server for MongoDB recreates it eventually. It is a normal procedure. No action is required from your end. - 2. Restart all `pbm-agents` + 3. Restart all `pbm-agents` - 3. Run the following command to resync the backup list with the storage: + 4. Run the following command to resync the backup list with the storage: ```{.bash data-prompt="$"} $ pbm config --force-resync ``` - 4. Start the balancer and start `mongos` nodes. + 5. Start the balancer and start `mongos` nodes. - 5. We recommend to make a fresh backup to serve as the new base for future restores. - 6. [Enable point-in-time recovery](../features/point-in-time-recovery.md#enable-point-in-time-recovery) if required. + 6. We recommend to make a fresh backup to serve as the new base for future restores + 7. [Enable point-in-time recovery](../features/point-in-time-recovery.md#enable-point-in-time-recovery) if required ### Define a `mongod` binary location @@ -240,7 +241,8 @@ To restore a backup, use the [`pbm restore`](../reference/pbm-commands.md#pbm-re "node01:27017": /path/to/mongod "node03:27017": /another/path/to/mongod ``` - + When running in Docker, include Percona Backup for MongoDB files together with your MongoDB binaries. See [Run Percona Backup for MongoDB in a Docker container](https://docs.percona.com/percona-backup-mongodb/install/docker.html) for more information. + ### Parallel data download !!! admonition "Version added: [2.1.0](../release-notes/2.1.0.md)"