git clone https://github.com/ibm-cloud-architecture/icp-backup.git
cd ~/icp-backup/scripts
export org=ibmcom
export repo=etcd
export tag=v3.2.14
export endpoint=10.10.13.xx
./backupEtcd.sh
ls -al /tmp/etcd*
docker ps | grep etcd
mv /etc/cfc/pods/etcd.json /etc/cfc/
ll /etc/cfc/
ll /etc/cfc/pods
cd ~/icp-backup/scripts
rm -rf /var/lib/etcd/restored
ls -al /tmp/etcd*
-rw-r--r-- 1 root root 27512864 Oct 6 18:14 /tmp/etcd.2018.10.06-18.14.21.db
-rw-r--r-- 1 root root 27512864 Oct 6 18:14 /tmp/etcd.2018.10.06-18.14.37.db
-rw-r--r-- 1 root root 27512864 Oct 6 18:21 /tmp/etcd.2018.10.06-18.21.10.db
-rw-r--r-- 1 root root 27512864 Oct 6 19:42 /tmp/etcd.2018.10.06-19.42.19.db
./restoreEtcd.sh etcd.2018.10.06-19.42.19.db
ls -al /var/lib/etcd/restored/
ls -al /var/lib/etcd
mv /var/lib/etcd/member /tmp/member
mv /var/lib/etcd/restored/member /var/lib/etcd/member
mv /etc/cfc/etcd.json /etc/cfc/pods/
ls -al /etc/cfc/pods
watch -d -n 1 "docker ps | grep etcd"
kubectl get pods --all-namespaces
kubectl exec -it k8s-etcd-169.56.80.221 -n kube-system sh
watch -d -n 2 "docker ps | grep etcd"