Snapshots: Save & Restore
This page is only for ETCD v3+ and not handling ETCD v2.
For the original commands and more information on ETCD, see https://coreos.com/etcd/docs/latest/op-guide/recovery.html.
Take a snapshot
snapshot.db is the name of the snapshot file to be created)
Restore a snapshot
WARNING Before doing that all ETCDs in the cluster must be stopped!
You must rename/remove the current data dir (probably
Be sure to provide all flags that are specified in, e.g., systemd unit file, Kubespray:
/etc/etcd.env and others otherwise you may create issues for the ETCD cluster!
The command is looking about like that depending on what flags are used for your ETCD node:
This has to be done on all ETCD servers one by one with each having their own name given by flag as they were when the snapshot was taken.