mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
The sidebar navigation tree for the `operator` sub-sub commands is getting cluttered and we have a new set of commands coming to support secure variables keyring as well. Move these all under their own subtrees.
31 lines
701 B
Plaintext
31 lines
701 B
Plaintext
---
|
|
layout: docs
|
|
page_title: 'Commands: operator snapshot state'
|
|
description: |
|
|
Displays a JSON representation of a Raft snapshot.
|
|
---
|
|
|
|
# Command: operator snapshot state
|
|
|
|
Displays a JSON representation of state in a raft snapshot on disk.
|
|
|
|
~> **Warning:** This is a low-level debugging tool and not subject to
|
|
Nomad's usual backward compatibility guarantees.
|
|
|
|
## Usage
|
|
|
|
```plaintext
|
|
nomad operator snapshot state <file>
|
|
```
|
|
|
|
## Examples
|
|
|
|
The output of this command can be very large, so it's recommended that
|
|
you redirect the output to a file for later examination with other
|
|
tools.
|
|
|
|
```shell-session
|
|
$ nomad operator snapshot state backup.snap > ~/raft-state.json
|
|
$ jq . < ~/raft-state.json
|
|
```
|