github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/commands/operator/snapshot/restore.mdx (about) 1 --- 2 layout: docs 3 page_title: 'Commands: operator snapshot restore' 4 description: | 5 Restore snapshot of Nomad server state 6 --- 7 8 # Command: operator snapshot restore 9 10 Restores an atomic, point-in-time snapshot of the state of the Nomad servers 11 which includes jobs, nodes, allocations, periodic jobs, and ACLs. 12 13 Restores involve a potentially dangerous low-level Raft operation that is not 14 designed to handle server failures during a restore. This command is primarily 15 intended to be used when recovering from a disaster, restoring into a fresh 16 cluster of Nomad servers. 17 18 If ACLs are enabled, a management token must be supplied in order to perform 19 snapshot operations. 20 21 To restore a snapshot from the file "backup.snap": 22 23 ```shell-session 24 $ nomad operator snapshot restore backup.snap 25 ``` 26 27 ## Usage 28 29 ```plaintext 30 nomad operator snapshot restore [options] <file> 31 ``` 32 33 ## General Options 34 35 @include 'general_options_no_namespace.mdx' 36 37 [outage recovery]: https://learn.hashicorp.com/tutorials/nomad/outage-recovery