Hi, I have a query in backup and restore chapter, when we take backup of etcd us . . .

Jaspreet Singh:
Hi, I have a query in backup and restore chapter, when we take backup of etcd using “etcdctl snapshot save snapshot-name.db” we are assuming etcd is standalone service, how can we take backup of etcd when it is deployed on a pod as “etcd-master-node”?

 
kube-system   etcd-master-node                      1/1     Running   3          10d

I ran 
jaspreet@master-node:/$ kubectl exec etcd-master-node -n kube-system etcdctl snapshot save snapshot.db
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
{"level":"info","ts":1618389288.6000433,"caller":"snapshot/v3_snapshot.go:119","msg":"created temporary db file","path":"snapshot.db.part"}

Looks like snapshot is created, but how can I access it?

lagisetti sambasiva rao:
Try to verify using the below command , is this backup correct and useable further.

ETCDCTL_API=3 etcdctl --write-out=table snapshot status snapshotdb

Jaspreet Singh:
Got it, thanks. I was able to do it