diff --git a/content/en/docs/tasks/administer-cluster/configure-upgrade-etcd.md b/content/en/docs/tasks/administer-cluster/configure-upgrade-etcd.md index d63948f0ca..5268eef369 100644 --- a/content/en/docs/tasks/administer-cluster/configure-upgrade-etcd.md +++ b/content/en/docs/tasks/administer-cluster/configure-upgrade-etcd.md @@ -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 snapshot restore snapshotdb +ETCDCTL_API=3 etcdctl snapshot restore --data-dir snapshotdb +``` +Yet another example would be to first export the environment variable +```shell +export ETCDCTL_API=3 +etcdctl snapshot restore --data-dir snapshotdb ``` For more information and examples on restoring a cluster from a snapshot file, see