Skip to content

Commit d8bed61

Browse files
authored
Merge pull request #26701 from juampynr/patch-6
Add example to restore snapshot
2 parents 400d6ca + ce8d33f commit d8bed61

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,12 @@ employed to recover the data of a failed cluster.
320320
Before starting the restore operation, a snapshot file must be present. It can
321321
either be a snapshot file from a previous backup operation, or from a remaining
322322
[data directory]( https://etcd.io/docs/current/op-guide/configuration/#--data-dir).
323+
Here is an example:
324+
325+
```shell
326+
ETCDCTL_API=3 etcdctl --endpoints 10.2.0.9:2379 snapshot restore snapshotdb
327+
```
328+
323329
For more information and examples on restoring a cluster from a snapshot file, see
324330
[etcd disaster recovery documentation](https://etcd.io/docs/current/op-guide/recovery/#restoring-a-cluster).
325331

0 commit comments

Comments
 (0)