浏览代码

etcdctlv3: updated snapshot restore options

sharat 9 年之前
父节点
当前提交
05175480b3
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2 0
      etcdctl/README.md
  2. 1 1
      etcdctl/ctlv3/command/snapshot_command.go

+ 2 - 0
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.
 - 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
 #### Return value
 
 
 - On success, a new etcd data directory is initialized.
 - On success, a new etcd data directory is initialized.

+ 1 - 1
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 {
 func NewSnapshotRestoreCommand() *cobra.Command {
 	cmd := &cobra.Command{
 	cmd := &cobra.Command{
-		Use:   "restore <filename>",
+		Use:   "restore <filename> [options]",
 		Short: "Restores an etcd member snapshot to an etcd directory",
 		Short: "Restores an etcd member snapshot to an etcd directory",
 		Run:   snapshotRestoreCommandFunc,
 		Run:   snapshotRestoreCommandFunc,
 	}
 	}