ETCD Snapshot restore Error

I successfully took the backup of etcd and restore failed with below mentioned exception.

root@k8s-control:/# sudo ETCDCTL_API=3 etcdctl snapshot restore /home/cloud_user/etcd_backup.db --data-dir /var/lib/etcd-from-backup
Error: expected sha256 [32 77 132 49 156 109 182 253 182 245 237 211 200 190 41 107 57 99 183 199 146 162 169 29 9 111 118 49 24 15 140 125], got [68 232 59 125 114 103 19
247 233 183 67 147 32 42 177 157 166 3 147 90 183 150 12 18 121 56 175 147 248 96 158 229]

sudo ETCDCTL_API=3 etcdctl snapshot restore /home/cloud_user/etcd_backup.db --data-dir /var/lib/etcd-from-backup --skip-hash-check=true

with --skip-hash-check=true it works perfectly fine. I am not sure why this parameter is required. I understand this is not comparing hash when restoring


from backup.

Please, check the full steps GitHub - mmumshad/kubernetes-cka-practice-test-solution-etcd-backup-and-restore: This is the solution to the practice test for backing up and restoring an ETCD Cluster