github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/website/content/docs/commands/operator/snapshot-restore.mdx (about)

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