Skip to content

Instantly share code, notes, and snippets.

@greenbrian
Created December 6, 2019 04:15
Show Gist options
  • Save greenbrian/e1946e8f6c7ad88b28538d8c98ea8a0a to your computer and use it in GitHub Desktop.
Save greenbrian/e1946e8f6c7ad88b28538d8c98ea8a0a 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