github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/commands/operator/snapshot/state.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: 'Commands: operator snapshot state'
     4  description: |
     5    Displays a JSON representation of a Raft snapshot.
     6  ---
     7  
     8  # Command: operator snapshot state
     9  
    10  Displays a JSON representation of state in a raft snapshot on disk.
    11  
    12  ~> **Warning:** This is a low-level debugging tool and not subject to
    13    Nomad's usual backward compatibility guarantees.
    14  
    15  ## Usage
    16  
    17  ```plaintext
    18  nomad operator snapshot state <file>
    19  ```
    20  
    21  ## Examples
    22  
    23  The output of this command can be very large, so it's recommended that
    24  you redirect the output to a file for later examination with other
    25  tools.
    26  
    27  ```shell-session
    28  $ nomad operator snapshot state backup.snap > ~/raft-state.json
    29  $ jq . < ~/raft-state.json
    30  ```