소스 검색

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.
 
+- 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.

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