mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-18 18:38:08 -05:00
Docs: update restore snapshot content (#31231)
- Correct unseal example for CLI
This commit is contained in:
parent
baf4f84373
commit
b2b237991e
1 changed files with 11 additions and 14 deletions
|
|
@ -106,34 +106,31 @@ $ curl \
|
|||
|
||||
</Tabs>
|
||||
|
||||
|
||||
|
||||
## Step 4: Unseal Vault
|
||||
|
||||
<Tabs>
|
||||
|
||||
<Tab heading="CLI" group="cli">
|
||||
|
||||
Run
|
||||
[`vault operator raft snapshot restore`](/vault/docs/commands/operator/raft#snapshot-restore)
|
||||
with the local snapshot file path and the `-force` flag:
|
||||
Have each person with an unseal key share run
|
||||
`vault operator unseal` with their original unseal
|
||||
key until reaching the number of key shares required by your origial quroum
|
||||
configuration to unseal your Vault cluster:
|
||||
|
||||
|
||||
```shell-session
|
||||
$ vault operator raft snapshot restore -force <local_file_path>
|
||||
$ vault operator unseal
|
||||
```
|
||||
|
||||
For example:
|
||||
|
||||
Enter the unseal key when prompted:
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```shell-session
|
||||
$ vault operator raft snapshot restore -force /tmp/snapshots/backup.snap
|
||||
|
||||
```plaintext
|
||||
Unseal Key (will be hidden):
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
You must use the `-force` flag as the auto-unseal or Shamir keys are not
|
||||
consistent with the snapshot data, which came from a different cluster.
|
||||
|
||||
</Tab>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue