Skip to content

Commit ce8d33f

Browse files
authored
Add example to restore snapshot
1 parent e447269 commit ce8d33f

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
@@ -293,6 +293,12 @@ employed to recover the data of a failed cluster.
293293
Before starting the restore operation, a snapshot file must be present. It can
294294
either be a snapshot file from a previous backup operation, or from a remaining
295295
[data directory]( https://etcd.io/docs/current/op-guide/configuration/#--data-dir).
296+
Here is an example:
297+
298+
```shell
299+
ETCDCTL_API=3 etcdctl --endpoints 10.2.0.9:2379 snapshot restore snapshotdb
300+
```
301+
296302
For more information and examples on restoring a cluster from a snapshot file, see
297303
[etcd disaster recovery documentation](https://etcd.io/docs/current/op-guide/recovery/#restoring-a-cluster).
298304

0 commit comments

Comments
 (0)