Skip to content

Instantly share code, notes, and snippets.

@sandwern
Forked from greenbrian/snapshot.md
Created August 30, 2021 14:26
Show Gist options
  • Select an option

  • Save sandwern/bb6fbbb81f9ceeaadf79a987e6625f23 to your computer and use it in GitHub Desktop.

Select an option

Save sandwern/bb6fbbb81f9ceeaadf79a987e6625f23 to your computer and use it in GitHub Desktop.
Consul Snapshot restore Vault cluster

Take a consul snapshot:

consul snapshot save backup.snap

Verify consul snapshot:

consul snapshot inspect backup.snap

Stop Consul

systemctl stop consul.service

Stop Vault

systemctl stop vault.service

Delete all consul data on Leader

consul kv delete -recurse vault

Start Consul

systemctl start consul

Run Snapshot Restore:

consul snapshot restore backup.snap

Start Vault

systemctl start vault

Unseal Vault

vault operator unseal

Check Consul Status

consul members consul operator raft list-peers

Check Vault Status

vault status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment