#Backup command 
ETCDCTL_API=3 etcdctl snapshot save <backup-file-location> \\
--endpoints=https://127.0.0.1:2379 \\ #Verify as per version 
--cacert=<trusted-ca-file> \\
--cert=<cert-file> \\
--key=<key-file>

#Verify the snapshot:
ETCDCTL_API=3 etcdctl --write-out=table snapshot status snapshotdb

#Restore

#Create restore point from the backup

ETCDCTL_API=3 etcdctl snapshot restore /tmp/etcd-backup.db --data-dir /var/lib/etcd-backup

#The restored files are located at the new folder /var/lib/etcd-backup, so now configure etcd to use that directory:

vim /etc/kubernetes/manifests/etcd.yaml

#Restart all the control plane components to ensure that new changes are applied.

Untitled