class Consul::Snapshot
- Consul::Snapshot
- Consul::Transport
- Reference
- Object
Defined in:
consul/client/snapshot.crInstance Method Summary
-
#create_snapshot(datacenter : String | Nil = nil) : String
create_snapshot generates and returns an atomic, point-in-time snapshot of the Consul server state.
-
#restore_snapshot(data : String, datacenter : String | Nil = nil)
restore_snapshot restores a point-in-time snapshot of the Consul server state
Instance methods inherited from class Consul::Transport
client : HTTP::Client
client,
consistency : String
consistency,
delete(path : String) : HTTP::Client::Response
delete,
get(path : String) : HTTP::Client::Response
get,
get_consistency : String
get_consistency,
put(path : String, data : JSON::Any) : HTTP::Client::Responseput(path : String, data : String) : HTTP::Client::Response
put(path : String) : HTTP::Client::Response put
Constructor methods inherited from class Consul::Transport
new(client : HTTP::Client, consistency : String = "default")
new
Instance Method Detail
def 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
def restore_snapshot(data : String, datacenter : String | Nil = nil)
#
restore_snapshot restores a point-in-time snapshot of the Consul server state