1
0
mirror of https://github.com/minio/docs.git synced 2025-09-13 04:26:43 +03:00
Files
docs/source/includes/facts-versioning.rst
2020-10-07 20:11:09 -04:00

4.7 KiB

Directs |command| to operate only on the object version(s) that existed at specified point-in-time.

  • To rewind to a specific date in the past, specify the date as an ISO8601-formatted timestamp. For example: --rewind "2020.03.24T10:00".
  • To rewind a duration in time, specify the duration as a string in #d#hh#mm#ss format. For example: --rewind "1d2hh3mm4ss".

|rewind| requires that the specified |alias| be an S3-compatible service that supports minio-bucket-versioning. For MinIO deployments, use mc version to enable or disable bucket versioning.

Directs |command| to operate on all object versions that exist in the bucket.

|versions| requires that the specified |alias| be an S3-compatible service that supports minio-bucket-versioning. For MinIO deployments, use mc version to enable or disable bucket versioning.

Directs |command| to operate only on the specified object version.

|versionid| requires that the specified |alias| be an S3-compatible service that supports minio-bucket-versioning. For MinIO deployments, use mc version to enable or disable bucket versioning.

So this is an ugly workaround. Since you can't override substitutions on a single page, those reference commands with multiple subcommands get kind of messy. Instead, the following sections "duplicate" the core content for supporting commands with multiple subcommands that support versioning arguments.

The ideal path forward would be to extend the include directive to allow for per-directive replacement, but that will take significant engineering effort. So until then, kludges it is.

Directs |command-2| to operate only on the object version(s) that existed at specified point-in-time.

  • To rewind to a specific date in the past, specify the date as an ISO8601-formatted timestamp. For example: --rewind "2020.03.24T10:00".
  • To rewind a duration in time, specify the duration as a string in #d#hh#mm#ss format. For example: --rewind "1d2hh3mm4ss".

|rewind-2| requires that the specified |alias-2| be an S3-compatible service that supports minio-bucket-versioning. For MinIO deployments, use mc version to enable or disable bucket versioning.

Directs |command-2| to operate on all object versions that exist in the bucket.

|versions-2| requires that the specified |alias-2| be an S3-compatible service that supports minio-bucket-versioning. For MinIO deployments, use mc version to enable or disable bucket versioning.

Directs |command-2| to operate only on the specified object version.

|versionid-2| requires that the specified |alias-2| be an S3-compatible service that supports minio-bucket-versioning. For MinIO deployments, use mc version to enable or disable bucket versioning.

-------------- 3rd Subcommand --------------

Directs |command-3| to operate only on the object version(s) that existed at specified point-in-time.

  • To rewind to a specific date in the past, specify the date as an ISO8601-formatted timestamp. For example: --rewind "2020.03.24T10:00".
  • To rewind a duration in time, specify the duration as a string in #d#hh#mm#ss format. For example: --rewind "1d2hh3mm4ss".

|rewind-3| requires that the specified |alias-3| be an S3-compatible service that supports minio-bucket-versioning. For MinIO deployments, use mc version to enable or disable bucket versioning.

Directs |command-3| to operate on all object versions that exist in the bucket.

|versions-3| requires that the specified |alias-3| be an S3-compatible service that supports minio-bucket-versioning. For MinIO deployments, use mc version to enable or disable bucket versioning.

Directs |command-3| to operate only on the specified object version.

|versionid-3| requires that the specified |alias-3| be an S3-compatible service that supports minio-bucket-versioning. For MinIO deployments, use mc version to enable or disable bucket versioning.

Requires Versioning

|command| requires bucket versioning <minio-bucket-versioning> to use this feature. Use mc version to enable versioning on a bucket.