[zh-cn] sync tasks/administer-cluster/configure-upgrade-etcd.md

Signed-off-by: xin.li <xin.li@daocloud.io>
pull/36997/head
xin.li 2022-09-24 20:03:12 +08:00
parent c102328f1f
commit 16adba2a84
1 changed files with 11 additions and 1 deletions

View File

@ -612,7 +612,17 @@ 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
```
<!--