ETCDCTL_API=3 etcdctl --endpoints=https://127.0.0.1:2379 snapshot save /tmp/snapshot-pre-boot.db
--cacert=/etc/kubernetes/pki/etcd/ca.crt
--cert=/etc/kubernetes/pki/etcd/server.crt
--key=/etc/kubernetes/pki/etcd/server.key
ls snapshot.db
ETCDCTL_API=3 etcdctl snapshot status /tmp/snapshot-pre-boot.db
service kube-apiserver stop
ETCDCTL_API=3 etcdctl --endpoints=https://[127.0.0.1]:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt
--name=master
--cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key
--data-dir /var/lib/etcd-from-backup
--initial-cluster=master=https://127.0.0.1:2380
--initial-cluster-token etcd-cluster-1
--initial-advertise-peer-urls=https://127.0.0.1:2380
snapshot restore /tmp/snapshot-pre-boot.db
update etcd.service with new data location, cluster token, etc
systemctl daemon-reload
service etcd restart
service kube-apiserver start