From 05175480b3afba5a665247fa1d06bc7b397d7dd8 Mon Sep 17 00:00:00 2001 From: sharat Date: Wed, 21 Sep 2016 16:17:32 +0530 Subject: [PATCH] etcdctlv3: updated snapshot restore options --- etcdctl/README.md | 2 ++ etcdctl/ctlv3/command/snapshot_command.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/etcdctl/README.md b/etcdctl/README.md index ddc986e99..541fba817 100644 --- a/etcdctl/README.md +++ b/etcdctl/README.md @@ -762,6 +762,8 @@ The snapshot restore options closely resemble to those used in the `etcd` comman - name -- Human-readable name for the etcd cluster member being restored. +- skip-hash-check -- Ignore snapshot integrity hash value (required if copied from data directory) + #### Return value - On success, a new etcd data directory is initialized. diff --git a/etcdctl/ctlv3/command/snapshot_command.go b/etcdctl/ctlv3/command/snapshot_command.go index 9e5c1d171..89e421fbb 100644 --- a/etcdctl/ctlv3/command/snapshot_command.go +++ b/etcdctl/ctlv3/command/snapshot_command.go @@ -91,7 +91,7 @@ The items in the lists are hash, revision, total keys, total size. func NewSnapshotRestoreCommand() *cobra.Command { cmd := &cobra.Command{ - Use: "restore ", + Use: "restore [options]", Short: "Restores an etcd member snapshot to an etcd directory", Run: snapshotRestoreCommandFunc, }