Skip to content

Commit df20363

Browse files
authored
Merge pull request #36997 from my-git9/configure-upgrade-etcd5
[zh-cn] sync tasks/administer-cluster/configure-upgrade-etcd.md
2 parents b2f626e + 16adba2 commit df20363

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

content/zh-cn/docs/tasks/administer-cluster/configure-upgrade-etcd.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,17 @@ Another example for restoring using etcdctl options:
612612
恢复时也可以指定操作选项,例如:
613613

614614
```shell
615-
ETCDCTL_API=3 etcdctl --data-dir <data-dir-location> snapshot restore snapshotdb
615+
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
616626
```
617627

618628
<!--

0 commit comments

Comments
 (0)