Skip to content

Commit 17c5278

Browse files
authored
Merge pull request #44050 from adityasamant25/etcd-restore
Use etcdutl instead of etcdctl for restoring an etcd cluster
2 parents c8d47ea + ede6168 commit 17c5278

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,14 @@ either be a snapshot file from a previous backup operation, or from a remaining
345345
When restoring the cluster, use the `--data-dir` option to specify to which folder the cluster should be restored:
346346

347347
```shell
348-
ETCDCTL_API=3 etcdctl --data-dir <data-dir-location> snapshot restore snapshot.db
348+
etcdutl --data-dir <data-dir-location> snapshot restore snapshot.db
349349
```
350350
where `<data-dir-location>` is a directory that will be created during the restore process.
351351

352-
Yet another example would be to first export the `ETCDCTL_API` environment variable:
352+
The below example depicts the usage of the `etcdctl` tool for the restore operation:
353+
{{< note >}}
354+
The usage of `etcdctl` for restoring has been deprecated since etcd v3.5.x and may be removed from a future etcd release.
355+
{{< /note >}}
353356

354357
```shell
355358
export ETCDCTL_API=3

0 commit comments

Comments
 (0)