Skip to content

Commit

Permalink
backport of commit bf8ad81 (#16688)
Browse files Browse the repository at this point in the history
This pull request was automerged via backport-assistant
  • Loading branch information
hc-github-team-nomad-core authored Mar 28, 2023
1 parent 55d5760 commit df1109d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions website/content/docs/commands/operator/snapshot/restore.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ designed to handle server failures during a restore. This command is primarily
intended to be used when recovering from a disaster, restoring into a fresh
cluster of Nomad servers.

This command only restores the Raft snapshot. If you are recovering a cluster,
you will also need to [restore the keyring][] onto at least one server.

If ACLs are enabled, a management token must be supplied in order to perform
snapshot operations.

Expand All @@ -35,3 +38,4 @@ nomad operator snapshot restore [options] <file>
@include 'general_options_no_namespace.mdx'

[outage recovery]: /nomad/tutorials/manage-clusters/outage-recovery
[restore the keyring]: /nomad/docs/operations/key-management#restoring-the-keyring-from-backup
5 changes: 5 additions & 0 deletions website/content/docs/commands/operator/snapshot/save.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ leader is available):
$ nomad operator snapshot save -stale backup.snap
```

This command only saves a Raft snapshot. If you use this snapshot to recover a
cluster, you will also need to [restore the keyring][] onto at least one server.


## Usage

```plaintext
Expand All @@ -45,3 +49,4 @@ nomad operator snapshot save [options] <file>
server.

[outage recovery]: /nomad/tutorials/manage-clusters/outage-recovery
[restore the keyring]: /nomad/docs/operations/key-management#restoring-the-keyring-from-backu
5 changes: 5 additions & 0 deletions website/content/docs/operations/key-management.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ key files are needed to recover the cluster. Operators should include these
files as part of your organization's backup and recovery strategy for the
cluster.

If you are recovering a Raft snapshot onto a new cluster without running
workloads, you can skip restoring the keyring and run [`nomad operator root
keyring rotate`][] once the servers have joined.

[variables]: /nomad/docs/concepts/variables
[workload identities]: /nomad/docs/concepts/workload-identity
[data directory]: /nomad/docs/configuration#data_dir
[`nomad operator root keyring rotate -full`]: /nomad/docs/commands/operator/root/keyring-rotate
[`nomad operator root keyring rotate`]: /nomad/docs/commands/operator/root/keyring-rotate

0 comments on commit df1109d

Please sign in to comment.