Consul Snapshot
Command: consul snapshot
The snapshot
command has subcommands for saving, restoring, and inspecting the
state of the Consul servers for disaster recovery. These are atomic, point-in-time
snapshots which include key/value entries, service catalog, prepared queries,
sessions, and ACLs. This command is available in Consul 0.7.1 and later.
Snapshots are also accessible via the HTTP API.
Usage
Usage: consul snapshot <subcommand>
For the exact documentation for your Consul version, run consul snapshot -h
to
view the complete list of subcommands.
For more information, examples, and usage about a subcommand, click on the name of the subcommand in the sidebar or one of the links below:
Basic Examples
To create a snapshot and save it as a file called "backup.snap":
To restore a snapshot from a file called "backup.snap":
To inspect a snapshot from the file "backup.snap":
To run a daemon process that periodically saves snapshots Enterprise
For more examples, ask for subcommand help or view the subcommand documentation by clicking on one of the links in the sidebar.