open-nomad/website/pages/docs/commands/operator/snapshot-restore.mdx

39 lines
1 KiB
Plaintext
Raw Normal View History

2020-06-19 16:31:40 +00:00
---
layout: docs
page_title: 'Commands: operator snapshot restore'
sidebar_title: snapshot restore
description: |
Restore snapshot of Nomad server state
---
# Command: operator snapshot restore
Restores an atomic, point-in-time snapshot of the state of the Nomad servers
which includes jobs, nodes, allocations, periodic jobs, and ACLs.
Restores involve a potentially dangerous low-level Raft operation that is not
designed to handle server failures during a restore. This command is primarily
intended to be used when recovering from a disaster, restoring into a fresh
cluster of Nomad servers.
If ACLs are enabled, a management token must be supplied in order to perform
snapshot operations.
To restore a snapshot from the file "backup.snap":
```shell-session
$ nomad operator snapshot restore backup.snap
```
## Usage
```plaintext
nomad operator snapshot restore [options] <file>
```
## General Options
@include 'general_options.mdx'
[outage recovery]: https://learn.hashicorp.com/nomad/operating-nomad/outage