etcd snapshot / restore

472 views
Skip to first unread message

Laszlo Budai

unread,
Jun 14, 2021, 9:18:39 AM6/14/21
to etcd-dev

Hello all,

I am experimenting with backup/restore of etcd. I have etcd deployed with kubeadm as a docker container. It is version 3.4.13.
I want to backup to my workstation using the etcdctl snapshot save command. On my workstation the client version is:
etcdctl version: 3.2.26
API version: 3.2

When I want to restore the snapshot created with this client it gives me the following message:
~# etcdctl snapshot restore /var/lib/etcd/backup
Error:  expected sha256 [77 183 48 245 20 202 145 96 191 224 177 218 130 69 7 35 65 201 114 143 105 215 214 209 153 110 214 187 21 222 178 108], got [186 139 8 241 196 117 7 23 141 150 191 52 30 252 229 37 133 187 207 108 108 227 87 77 120 20 139 42 153 180 80 119]

But if I try to use the 3.2.26 client to restore a snapshot created with the etcdctl 3.4.13 that is delivered in the docker image, then looks OK:
~# etcdctl snapshot restore /var/lib/etcd/backup-34
2021-06-14 13:12:03.194815 I | mvcc: restore compact to 1423012
2021-06-14 13:12:03.208857 I | etcdserver/membership: added member 8e9e05c52164694d [http://localhost:2380] to cluster cdf818194e3a8c32

Does this means that the 3.2 version of the etcdctl is not appropriate for saving snapshots of the newer 3.4 etcd???

Thank you in advance for any clarification,
Laszlo
Reply all
Reply to author
Forward
0 new messages