Skip to content

Instantly share code, notes, and snippets.

View rafaelgaspar's full-sized avatar

Rafael Gaspar rafaelgaspar

View GitHub Profile
@rafaelgaspar
rafaelgaspar / consul_export.sh
Last active November 17, 2017 17:42
Migrate from Consul o Etcd
#!/bin/bash
for key in $(consul kv export | grep "\"key\":" | sed "s/^\t*\"key\": \"//g" | sed "s/\",$//g")
do
echo $key:
consul kv get $key
echo
done