Skip to content

Commit

Permalink
PBM-1221 Added a note how to make external restore when using filesystem
Browse files Browse the repository at this point in the history
modified:   docs/features/snapshots.md
  • Loading branch information
nastena1606 committed Dec 12, 2023
1 parent 6e33730 commit fdf0407
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/features/snapshots.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ The following procedure describes the restore from backups [made through PBM](#m
At this stage, Percona Backup for MongoDB reads the metadata from the backup, prepares the data for the cluster / replica set start and ensures its consistency. The database is restored to the timestamp specified in the `restore_to_time` of the metadata.
!!! note
If you use the filesystem as a remote backup storage, both `pbm-agent` and `pbm` CLI must have the same permissions to it. To achieve this, run the `pbm restore-finish` command as the `mongod` user:
```{.bash data-prompt="$"}
$ sudo -u mongod -s pbm restore-finish <restore_name> -c </path/to/pbm-conf.yaml> --mongodb-uri=MONGODB_URI
```
4. Optional. You can track the restore progress by running the [`pbm describe-restore`](../reference/pbm-commands.md#pbm-descrbe-restore) command.
#### Post-restore steps
Expand Down Expand Up @@ -155,6 +163,14 @@ To restore from a backup, do the following:
At this stage, Percona Backup for MongoDB prepares the data for the cluster / replica set start and ensures its consistency.
!!! note
If you use the filesystem as a remote backup storage, both `pbm-agent` and `pbm` CLI must have the same permissions to it. To achieve this, run the `pbm restore-finish` command as the `mongod` user:
```{.bash data-prompt="$"}
$ sudo -u mongod -s pbm restore-finish <restore_name> -c </path/to/pbm-conf.yaml> --mongodb-uri=MONGODB_URI
```
4. Don't forget to complete the [post-restore steps](#post-restore-steps)

0 comments on commit fdf0407

Please sign in to comment.