Skip to content

Commit ede6168

Browse files
Changed the context of the remark for the usage of etcdctl for restoring. As per the review comments to the original PR.
PR rebased.
1 parent 7bca5a7 commit ede6168

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,15 +351,15 @@ etcdutl --data-dir <data-dir-location> snapshot restore snapshot.db
351351
```
352352
where `<data-dir-location>` is a directory that will be created during the restore process.
353353

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

356359
```shell
357360
export ETCDCTL_API=3
358361
etcdctl --data-dir <data-dir-location> snapshot restore snapshot.db
359362
```
360-
{{< note >}}
361-
Using etcdctl for restoring snapshots is deprecated since etcd v3.5.x
362-
{{< /note >}}
363363

364364
If `<data-dir-location>` is the same folder as before, delete it and stop etcd process before restoring the cluster. Else change etcd configuration and restart the etcd process after restoration to make it use the new data directory.
365365

0 commit comments

Comments
 (0)