We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b2f626e + 16adba2 commit df20363Copy full SHA for df20363
content/zh-cn/docs/tasks/administer-cluster/configure-upgrade-etcd.md
@@ -612,7 +612,17 @@ Another example for restoring using etcdctl options:
612
恢复时也可以指定操作选项,例如:
613
614
```shell
615
-ETCDCTL_API=3 etcdctl --data-dir <data-dir-location> snapshot restore snapshotdb
+ETCDCTL_API=3 etcdctl snapshot restore --data-dir <data-dir-location> snapshotdb
616
+```
617
+
618
+<!--
619
+Yet another example would be to first export the environment variable
620
+-->
621
+另一个例子是先导出环境变量:
622
623
+```shell
624
+export ETCDCTL_API=3
625
+etcdctl snapshot restore --data-dir <data-dir-location> snapshotdb
626
```
627
628
<!--
0 commit comments