The snapshot file contains all the Kubernetes states and critical information.
Backup:
ETCDCTL_API=3 etcdctl snapshot save /opt/snapshot.db \
--endpoints=https://127.0.0.1:2379 \
--cacert=/etc/kubernetes/pki/etcd/ca.crt \
--cert=/etc/kubernetes/pki/etcd/server.crt \
--key=/etc/kubernetes/pki/etcd/server.key
Verify snapshot:
ETCDCTL_API=3 etcdctl --write-out=table snapshot status /opt/snapshot.db