From 6fc39cdf8e94451f7809d36f7575e9c515608a33 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 26 Aug 2020 14:51:37 -0700 Subject: [PATCH] imply rewind correctly what it does (#3373) --- cmd/du-main.go | 4 ++-- cmd/ls-main.go | 4 ++-- cmd/rm-main.go | 4 ++-- cmd/share-download-main.go | 2 +- docs/minio-client-complete-guide.md | 36 +++++++++++++++-------------- 5 files changed, 26 insertions(+), 24 deletions(-) diff --git a/cmd/du-main.go b/cmd/du-main.go index fe7629b9..cc2485f1 100644 --- a/cmd/du-main.go +++ b/cmd/du-main.go @@ -43,11 +43,11 @@ var ( }, cli.StringFlag{ Name: "rewind", - Usage: "move back in time", + Usage: "include all object versions no later than specified date", }, cli.BoolFlag{ Name: "versions", - Usage: "include all objects versions", + Usage: "include all object versions", }, } ) diff --git a/cmd/ls-main.go b/cmd/ls-main.go index c19cd8c9..39152399 100644 --- a/cmd/ls-main.go +++ b/cmd/ls-main.go @@ -34,11 +34,11 @@ var ( lsFlags = []cli.Flag{ cli.StringFlag{ Name: "rewind", - Usage: "back in time", + Usage: "list all object versions no later than specified date", }, cli.BoolFlag{ Name: "versions", - Usage: "List all versions", + Usage: "list all versions", }, cli.BoolFlag{ Name: "recursive, r", diff --git a/cmd/rm-main.go b/cmd/rm-main.go index 280541c9..f12c5b34 100644 --- a/cmd/rm-main.go +++ b/cmd/rm-main.go @@ -37,11 +37,11 @@ var ( rmFlags = []cli.Flag{ cli.BoolFlag{ Name: "versions", - Usage: "remove object(s) and all its version(s)", + Usage: "remove object(s) and all its versions", }, cli.StringFlag{ Name: "rewind", - Usage: "rollback object(s) to older version(s)", + Usage: "roll back object(s) to current version at specified time", }, cli.StringFlag{ Name: "version-id, vid", diff --git a/cmd/share-download-main.go b/cmd/share-download-main.go index 0767f11b..2c68d543 100644 --- a/cmd/share-download-main.go +++ b/cmd/share-download-main.go @@ -32,7 +32,7 @@ var ( Usage: "share all objects recursively", }, cli.StringFlag{ - Name: "version-id", + Name: "version-id, vid", Usage: "share a particular object version", }, shareFlagExpire, diff --git a/docs/minio-client-complete-guide.md b/docs/minio-client-complete-guide.md index ecbad995..7fe1cf37 100644 --- a/docs/minio-client-complete-guide.md +++ b/docs/minio-client-complete-guide.md @@ -431,9 +431,10 @@ USAGE: mc cat [FLAGS] SOURCE [SOURCE...] FLAGS: - --rewind value go back in time by specifying duration or a specific time - --encrypt-key value encrypt/decrypt objects (using server-side encryption with customer provided keys) - --help, -h show help + --rewind value display an earlier object version + --version-id value, --vid value display a specific version of an object + --encrypt-key value encrypt/decrypt objects (using server-side encryption with customer provided keys) + --help, -h show help ENVIRONMENT VARIABLES: MC_ENCRYPT_KEY: list of comma delimited prefix=secret values @@ -889,19 +890,20 @@ USAGE: mc rm [FLAGS] TARGET [TARGET ...] FLAGS: - --versions remove object(s) and all its versions - --rewind value revert to older version of object(s) in time - --version-id value delete a specific version of an object - --recursive, -r remove recursively - --force allow a recursive remove operation - --dangerous allow site-wide removal of objects - --incomplete, -I remove incomplete uploads - --fake perform a fake remove operation - --stdin read object names from STDIN - --older-than value remove objects older than L days, M hours and N minutes LMN[d|h|m]. (default: 0) - --newer-than value remove objects newer than L days, M hours and N minutes LMN[d|h|m]. (default: 0) - --encrypt-key value encrypt/decrypt objects (using server-side encryption with customer provided keys) - --help, -h show help + --versions remove object(s) and all its versions + --rewind value roll back object(s) to current versions at specified time + --version-id value, --vid value delete a specific version of an object + --recursive, -r remove recursively + --force allow a recursive remove operation + --dangerous allow site-wide removal of objects + --incomplete, -I remove incomplete uploads + --fake perform a fake remove operation + --stdin read object names from STDIN + --older-than value remove objects older than L days, M hours and N minutes + --newer-than value remove objects newer than L days, M hours and N minutes + --bypass bypass governance + --encrypt-key value encrypt/decrypt objects (using server-side encryption with customer provided keys) + --help, -h show help ENVIRONMENT VARIABLES: MC_ENCRYPT_KEY: list of comma delimited prefix=secret values @@ -1637,7 +1639,7 @@ Replication configuration rule applied to myminio/mybucket/prefix. ``` *Example: Disable replication configuration rule with rule Id "bsibgh8t874dnjst8hkg" on bucket "mybucket" with prefix "prefix" for alias `myminio`* - + ``` mc replicate set myminio/mybucket/prefix --id "bsibgh8t874dnjst8hkg" --state disable Replication configuration rule with ID `bsibgh8t874dnjst8hkg` applied to myminio/mybucket/prefix.