class

Consul::Snapshot

Inherits Consul::Transport / Reference / Object

Instance methods

create_snapshot(datacenter : String | Nil = nil) : String

create_snapshot generates and returns an atomic, point-in-time snapshot of the Consul server state. Snapshots are exposed as gzipped tar archives which internally contain the Raft metadata required to restore, as well as a binary serialized version of the Consul server state

Source
restore_snapshot(data : String, datacenter : String | Nil = nil)

restore_snapshot restores a point-in-time snapshot of the Consul server state

Source