imply rewind correctly what it does (#3373)

This commit is contained in:
Harshavardhana
2020-08-26 14:51:37 -07:00
committed by GitHub
parent 35632bc1af
commit 6fc39cdf8e
5 changed files with 26 additions and 24 deletions
+2 -2
View File
@@ -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",
},
}
)
+2 -2
View File
@@ -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",
+2 -2
View File
@@ -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",
+1 -1
View File
@@ -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,
+19 -17
View File
@@ -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.