Skip to content

Commit

Permalink
add dump-from-snapshot script
Browse files Browse the repository at this point in the history
  • Loading branch information
webner committed Aug 19, 2019
1 parent b098b5a commit b605582
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dump-from-snapshot
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
docker run --name etcd-from-snapshot -e ETCDCTL_API=3 -d -v $PWD/snapshot.db:/snapshot.db -p 2379:2379 quay.io/coreos/etcd:v3.2.22 sh -c 'etcdctl snapshot restore snapshot.db && etcd --listen-client-urls=http://0.0.0.0:2379 --advertise-client-urls=http://0.0.0.0:2379'

./etcdhelper -endpoint http://127.0.0.1:2379 dump

docker rm -fv etcd-from-snapshot

0 comments on commit b605582

Please sign in to comment.