Update to etcdctl restore command syntax
The syntax of the restore command at line 348 is problematic (doesn't work) or might have issues with a certain versions of Kubernetes (tried on version 1.23.0), doesn't work. Also included export of the ECTDCTL_API=3 variable `export ECTDCTL_API=3`pull/36427/head
parent
f2006ccebf
commit
99bd0a8585
|
@ -345,7 +345,12 @@ ETCDCTL_API=3 etcdctl --endpoints 10.2.0.9:2379 snapshot restore snapshotdb
|
|||
```
|
||||
Another example for restoring using etcdctl options:
|
||||
```shell
|
||||
ETCDCTL_API=3 etcdctl --data-dir <data-dir-location> snapshot restore snapshotdb
|
||||
ETCDCTL_API=3 etcdctl snapshot restore --data-dir <data-dir-location> snapshotdb
|
||||
```
|
||||
Yet another example would be to first export the environment variable
|
||||
```shell
|
||||
export ETCDCTL_API=3
|
||||
etcdctl snapshot restore --data-dir <data-dir-location> snapshotdb
|
||||
```
|
||||
|
||||
For more information and examples on restoring a cluster from a snapshot file, see
|
||||
|
|
Loading…
Reference in New Issue