Skip to content

Commit

Permalink
backport of commit 1c976d1 (#23278)
Browse files Browse the repository at this point in the history
Co-authored-by: James Rasell <[email protected]>
  • Loading branch information
hc-github-team-nomad-core and jrasell authored Jun 10, 2024
1 parent ffdbfdb commit 8acf92d
Showing 1 changed file with 43 additions and 12 deletions.
55 changes: 43 additions & 12 deletions website/content/docs/commands/operator/snapshot/inspect.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,59 @@
layout: docs
page_title: 'Commands: operator snapshot inspect'
description: |
Display the current Raft peer configuration.
Displays information about a snapshot file stored on local disk.
---

# Command: operator snapshot inspect

Displays information about a snapshot file on disk.
Displays information about a snapshot file stored on local disk.

To inspect the file "backup.snap":
## Usage

```plaintext
nomad operator snapshot inspect [options] [file]
```

## Inspect Options

- `-json` : Output information about the snapshot file in JSON format.

## Examples

To inspect the file "backup.snap":
```shell-session
$ nomad operator snapshot inspect backup.snap
ID 2-19-1592495928936
Size 3902
Index 19
Term 2
Version 1
```
Created = 2024-06-10T10:54:41+01:00
ID = 10-215871-1718013281130
Size = 158 KiB
Index = 215871
Term = 10
Version = 1
## Usage
Type Count Size
JobVersion 15 42 KiB
Alloc 5 37 KiB
TimeTable 1 28 KiB
JobSubmission 15 17 KiB
Node 2 14 KiB
Job 4 10 KiB
CSIPlugin 1 1.9 KiB
Eval 5 1.6 KiB
CSIVolume 1 1.1 KiB
JobSummary 4 825 B
Variables 2 695 B
VariablesQuota 8 562 B
Index 18 498 B
Deployment 1 496 B
ServiceRegistration 1 318 B
ACLToken 1 286 B
SchedulerConfig 1 242 B
NodePool 2 236 B
Namespace 1 209 B
RootKeyMeta 1 127 B
ClusterMetadata 1 71 B
```plaintext
nomad operator snapshot inspect <file>
Total 90 158 KiB
```

[outage recovery]: /nomad/tutorials/manage-clusters/outage-recovery

0 comments on commit 8acf92d

Please sign in to comment.