mirror of
https://github.com/minio/docs.git
synced 2025-07-31 18:04:52 +03:00
Moves limit upload and limit download flags out of global list (#820)
Uses an include in case we need them for other commands later. Closes #787 Also update mc mv to use standard optional and required formatting for params. Staged: http://192.241.195.202:9000/staging/limitflags/reference/minio-mc.html#global-options
This commit is contained in:
49
source/includes/linux/minio-client.rst
Normal file
49
source/includes/linux/minio-client.rst
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
.. start-mc-limit-flags-desc
|
||||||
|
|
||||||
|
.. mc-cmd:: --limit-download
|
||||||
|
:optional:
|
||||||
|
|
||||||
|
Limit client-side download rates to no more than a specified rate in KiB/s, MiB/s, or GiB/s.
|
||||||
|
This affects only the download to the local device running the MinIO Client.
|
||||||
|
Valid units include:
|
||||||
|
|
||||||
|
- ``B`` for bytes
|
||||||
|
- ``K`` for kilobytes
|
||||||
|
- ``G`` for gigabytes
|
||||||
|
- ``T`` for terabytes
|
||||||
|
- ``Ki`` for kibibytes
|
||||||
|
- ``Gi`` for gibibytes
|
||||||
|
- ``Ti`` for tebibytes
|
||||||
|
|
||||||
|
For example, to limit download rates to no more than 1 GiB/s, use the following:
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
--limit-download 1G
|
||||||
|
|
||||||
|
If not specified, MinIO uses an unlimited download rate.
|
||||||
|
|
||||||
|
.. mc-cmd:: --limit-upload
|
||||||
|
:optional:
|
||||||
|
|
||||||
|
Limit client-side upload rates to no more than the specified rate in KiB/s, MiB/s, or GiB/s.
|
||||||
|
This affects only the upload from the local device running the MinIO Client.
|
||||||
|
Valid units include:
|
||||||
|
|
||||||
|
- ``B`` for bytes
|
||||||
|
- ``K`` for kilobytes
|
||||||
|
- ``G`` for gigabytes
|
||||||
|
- ``T`` for terabytes
|
||||||
|
- ``Ki`` for kibibytes
|
||||||
|
- ``Gi`` for gibibytes
|
||||||
|
- ``Ti`` for tebibytes
|
||||||
|
|
||||||
|
For example, to limit upload rates to no more than 1 GiB/s, use the following:
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
--limit-upload 1G
|
||||||
|
|
||||||
|
If not specified, MinIO uses an unlimited upload rate.
|
||||||
|
|
||||||
|
.. end-mc-limit-flags-desc
|
@ -490,52 +490,6 @@ All :ref:`commands <minio-mc-commands>` support the following global options:
|
|||||||
|
|
||||||
mc --JSON ls play
|
mc --JSON ls play
|
||||||
|
|
||||||
.. mc-cmd:: --limit-download
|
|
||||||
:optional:
|
|
||||||
|
|
||||||
Limit client-side download rates to no more than a specified rate in KiB/s, MiB/s, or GiB/s.
|
|
||||||
This affects only the download to the local device running the MinIO Client.
|
|
||||||
Valid units include:
|
|
||||||
|
|
||||||
- ``B`` for bytes
|
|
||||||
- ``K`` for kilobytes
|
|
||||||
- ``G`` for gigabytes
|
|
||||||
- ``T`` for terabytes
|
|
||||||
- ``Ki`` for kibibytes
|
|
||||||
- ``Gi`` for gibibytes
|
|
||||||
- ``Ti`` for tebibytes
|
|
||||||
|
|
||||||
For example, to limit download rates to no more than 1 GiB/s, use the following:
|
|
||||||
|
|
||||||
.. code-block::
|
|
||||||
|
|
||||||
--limit-download 1G
|
|
||||||
|
|
||||||
If not specified, MinIO uses an unlimited download rate.
|
|
||||||
|
|
||||||
.. mc-cmd:: --limit-upload
|
|
||||||
:optional:
|
|
||||||
|
|
||||||
Limit client-side upload rates to no more than the specified rate in KiB/s, MiB/s, or GiB/s.
|
|
||||||
This affects only the upload from the local device running the MinIO Client.
|
|
||||||
Valid units include:
|
|
||||||
|
|
||||||
- ``B`` for bytes
|
|
||||||
- ``K`` for kilobytes
|
|
||||||
- ``G`` for gigabytes
|
|
||||||
- ``T`` for terabytes
|
|
||||||
- ``Ki`` for kibibytes
|
|
||||||
- ``Gi`` for gibibytes
|
|
||||||
- ``Ti`` for tebibytes
|
|
||||||
|
|
||||||
For example, to limit upload rates to no more than 1 GiB/s, use the following:
|
|
||||||
|
|
||||||
.. code-block::
|
|
||||||
|
|
||||||
--limit-upload 1G
|
|
||||||
|
|
||||||
If not specified, MinIO uses an unlimited upload rate.
|
|
||||||
|
|
||||||
.. option:: --no-color
|
.. option:: --no-color
|
||||||
|
|
||||||
Disables the built-in color theme for console output. Useful for dumb
|
Disables the built-in color theme for console output. Useful for dumb
|
||||||
|
@ -61,6 +61,8 @@ similar results to the ``cp`` commandline tool.
|
|||||||
[--encrypt "string"] \
|
[--encrypt "string"] \
|
||||||
[--encrypt-key] \
|
[--encrypt-key] \
|
||||||
[--legal-hold "on"] \
|
[--legal-hold "on"] \
|
||||||
|
[--limit-download string] \
|
||||||
|
[--limit-upload string] \
|
||||||
[--md5] \
|
[--md5] \
|
||||||
[--newer-than "string"] \
|
[--newer-than "string"] \
|
||||||
[--older-than "string"] \
|
[--older-than "string"] \
|
||||||
@ -187,6 +189,10 @@ Parameters
|
|||||||
|
|
||||||
Specify ``on``.
|
Specify ``on``.
|
||||||
|
|
||||||
|
.. include:: /includes/linux/minio-client.rst
|
||||||
|
:start-after: start-mc-limit-flags-desc
|
||||||
|
:end-before: end-mc-limit-flags-desc
|
||||||
|
|
||||||
.. mc-cmd:: --md5
|
.. mc-cmd:: --md5
|
||||||
:optional:
|
:optional:
|
||||||
|
|
||||||
|
@ -55,6 +55,8 @@ The :mc:`mc mirror` command synchronizes content to MinIO deployment, similar to
|
|||||||
[--dry-run] \
|
[--dry-run] \
|
||||||
[--encrypt-key "string"] \
|
[--encrypt-key "string"] \
|
||||||
[--exclude "string"] \
|
[--exclude "string"] \
|
||||||
|
[--limit-download string] \
|
||||||
|
[--limit-upload string] \
|
||||||
[--md5] \
|
[--md5] \
|
||||||
[--monitoring-address "string"] \
|
[--monitoring-address "string"] \
|
||||||
[--newer-than "string"] \
|
[--newer-than "string"] \
|
||||||
@ -147,6 +149,10 @@ Parameters
|
|||||||
Perform a mock mirror operation.
|
Perform a mock mirror operation.
|
||||||
Use this operation to test that the :mc:`mc mirror` operation will only mirror the desired objects or buckets.
|
Use this operation to test that the :mc:`mc mirror` operation will only mirror the desired objects or buckets.
|
||||||
|
|
||||||
|
.. include:: /includes/linux/minio-client.rst
|
||||||
|
:start-after: start-mc-limit-flags-desc
|
||||||
|
:end-before: end-mc-limit-flags-desc
|
||||||
|
|
||||||
.. mc-cmd:: md5
|
.. mc-cmd:: md5
|
||||||
|
|
||||||
|
|
||||||
|
@ -49,6 +49,8 @@ similar results to the ``mv`` commandline tool.
|
|||||||
[--disable-multipart] \
|
[--disable-multipart] \
|
||||||
[--encrypt "string"] \
|
[--encrypt "string"] \
|
||||||
[--encrypt-key "string"] \
|
[--encrypt-key "string"] \
|
||||||
|
[--limit-download string] \
|
||||||
|
[--limit-upload string] \
|
||||||
[--newer-than "string"] \
|
[--newer-than "string"] \
|
||||||
[--older-than "string"] \
|
[--older-than "string"] \
|
||||||
[--preserve] \
|
[--preserve] \
|
||||||
@ -65,8 +67,9 @@ Parameters
|
|||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
|
||||||
.. mc-cmd:: SOURCE
|
.. mc-cmd:: SOURCE
|
||||||
|
:required:
|
||||||
|
|
||||||
*Required* The object or objects to move.
|
The object or objects to move.
|
||||||
|
|
||||||
For moving an object from a MinIO bucket, specify the :ref:`alias <alias>`
|
For moving an object from a MinIO bucket, specify the :ref:`alias <alias>`
|
||||||
and the full path to the object(s) (e.g. bucket and path to objects). For
|
and the full path to the object(s) (e.g. bucket and path to objects). For
|
||||||
@ -100,7 +103,7 @@ Parameters
|
|||||||
.. mc-cmd:: TARGET
|
.. mc-cmd:: TARGET
|
||||||
:required:
|
:required:
|
||||||
|
|
||||||
*Required* The full path to the bucket to which the command moves the
|
The full path to the bucket to which the command moves the
|
||||||
object(s) at the specified :mc-cmd:`~mc mv SOURCE`. Specify the
|
object(s) at the specified :mc-cmd:`~mc mv SOURCE`. Specify the
|
||||||
:ref:`alias <alias>` of a configured S3 service as the prefix to the
|
:ref:`alias <alias>` of a configured S3 service as the prefix to the
|
||||||
:mc-cmd:`~mc mv TARGET` path.
|
:mc-cmd:`~mc mv TARGET` path.
|
||||||
@ -128,21 +131,20 @@ Parameters
|
|||||||
objects at the ``SOURCE``.
|
objects at the ``SOURCE``.
|
||||||
|
|
||||||
.. mc-cmd:: --attr
|
.. mc-cmd:: --attr
|
||||||
|
:optional:
|
||||||
|
|
||||||
*Optional* Add custom metadata for the object. Specify key-value pairs as
|
Add custom metadata for the object. Specify key-value pairs as ``KEY=VALUE\;``.
|
||||||
``KEY=VALUE\;``. For example,
|
For example, ``--attr key1=value1\;key2=value2\;key3=value3``.
|
||||||
``--attr key1=value1\;key2=value2\;key3=value3``.
|
|
||||||
|
|
||||||
.. mc-cmd:: --continue, c
|
.. mc-cmd:: --continue, c
|
||||||
|
:optional:
|
||||||
|
|
||||||
*Optional* Create or resume a move session.
|
Create or resume a move session.
|
||||||
|
|
||||||
.. mc-cmd:: --disable-multipart
|
.. mc-cmd:: --disable-multipart
|
||||||
|
:optional:
|
||||||
|
|
||||||
*Optional* Disables the multipart upload feature.
|
Disables the multipart upload feature.
|
||||||
|
|
||||||
Multipart upload breaks an object into a set of separate parts.
|
Multipart upload breaks an object into a set of separate parts.
|
||||||
Each part uploads individually and in any order.
|
Each part uploads individually and in any order.
|
||||||
@ -152,11 +154,10 @@ Parameters
|
|||||||
MinIO recommends using multipart upload for any object larger than 100 MB.
|
MinIO recommends using multipart upload for any object larger than 100 MB.
|
||||||
For more information on multipart upload, refer to the :s3-docs:`Amazon S3 documentation <mpuoverview.html>`
|
For more information on multipart upload, refer to the :s3-docs:`Amazon S3 documentation <mpuoverview.html>`
|
||||||
|
|
||||||
|
|
||||||
.. mc-cmd:: --encrypt
|
.. mc-cmd:: --encrypt
|
||||||
|
:optional:
|
||||||
|
|
||||||
*Optional* Encrypt or decrypt objects using server-side encryption with
|
Encrypt or decrypt objects using server-side encryption with
|
||||||
server-managed keys. Specify key-value pairs as ``KEY=VALUE``.
|
server-managed keys. Specify key-value pairs as ``KEY=VALUE``.
|
||||||
|
|
||||||
- Each ``KEY`` represents a bucket or object.
|
- Each ``KEY`` represents a bucket or object.
|
||||||
@ -171,9 +172,9 @@ Parameters
|
|||||||
alternative to specifying them on the command line.
|
alternative to specifying them on the command line.
|
||||||
|
|
||||||
.. mc-cmd:: --encrypt-key
|
.. mc-cmd:: --encrypt-key
|
||||||
|
:optional:
|
||||||
|
|
||||||
*Optional* Encrypt or decrypt objects using server-side encryption with
|
Encrypt or decrypt objects using server-side encryption with
|
||||||
client-specified keys. Specify key-value pairs as ``KEY=VALUE``.
|
client-specified keys. Specify key-value pairs as ``KEY=VALUE``.
|
||||||
|
|
||||||
- Each ``KEY`` represents a bucket or object.
|
- Each ``KEY`` represents a bucket or object.
|
||||||
@ -187,40 +188,44 @@ Parameters
|
|||||||
environment variable for retrieving a list of encryption key-value pairs
|
environment variable for retrieving a list of encryption key-value pairs
|
||||||
as an alternative to specifying them on the command line.
|
as an alternative to specifying them on the command line.
|
||||||
|
|
||||||
.. mc-cmd:: --newer-than
|
.. include:: /includes/linux/minio-client.rst
|
||||||
|
:start-after: start-mc-limit-flags-desc
|
||||||
|
:end-before: end-mc-limit-flags-desc
|
||||||
|
|
||||||
*Optional* Remove object(s) newer than the specified number of days. Specify
|
.. mc-cmd:: --newer-than
|
||||||
|
:optional:
|
||||||
|
|
||||||
|
Remove object(s) newer than the specified number of days. Specify
|
||||||
a string in ``##d#hh#mm#ss`` format. For example:
|
a string in ``##d#hh#mm#ss`` format. For example:
|
||||||
``--newer-than 1d2hh3mm4ss``.
|
``--newer-than 1d2hh3mm4ss``.
|
||||||
|
|
||||||
Defaults to ``0`` (all objects).
|
Defaults to ``0`` (all objects).
|
||||||
|
|
||||||
.. mc-cmd:: --older-than
|
.. mc-cmd:: --older-than
|
||||||
|
:optional:
|
||||||
|
|
||||||
*Optional* Remove object(s) older than the specified time limit. Specify a
|
Remove object(s) older than the specified time limit. Specify a
|
||||||
string in ``#d#hh#mm#ss`` format. For example: ``--older-than 1d2hh3mm4ss``.
|
string in ``#d#hh#mm#ss`` format. For example: ``--older-than 1d2hh3mm4ss``.
|
||||||
|
|
||||||
Defaults to ``0`` (all objects).
|
Defaults to ``0`` (all objects).
|
||||||
|
|
||||||
.. mc-cmd:: --preserve, a
|
.. mc-cmd:: --preserve, a
|
||||||
|
:optional:
|
||||||
|
|
||||||
*Optional* Preserve file system attributes and bucket policy rules of the
|
Preserve file system attributes and bucket policy rules of the
|
||||||
:mc-cmd:`~mc mv SOURCE` directories, buckets, and objects on the
|
:mc-cmd:`~mc mv SOURCE` directories, buckets, and objects on the
|
||||||
:mc-cmd:`~mc mv TARGET` bucket(s).
|
:mc-cmd:`~mc mv TARGET` bucket(s).
|
||||||
|
|
||||||
.. mc-cmd:: --recursive, r
|
.. mc-cmd:: --recursive, r
|
||||||
|
:optional:
|
||||||
|
|
||||||
|
Recursively move the contents of each bucket or directory
|
||||||
*Optional* Recursively move the contents of each bucket or directory
|
|
||||||
:mc-cmd:`~mc mv SOURCE` to the :mc-cmd:`~mc mv TARGET` bucket.
|
:mc-cmd:`~mc mv SOURCE` to the :mc-cmd:`~mc mv TARGET` bucket.
|
||||||
|
|
||||||
.. mc-cmd:: storage-class, sc
|
.. mc-cmd:: --storage-class, sc
|
||||||
|
:optional:
|
||||||
|
|
||||||
*Optional* Set the storage class for the new object(s) on the
|
Set the storage class for the new object(s) on the
|
||||||
:mc-cmd:`~mc mv TARGET`.
|
:mc-cmd:`~mc mv TARGET`.
|
||||||
|
|
||||||
See the Amazon documentation on
|
See the Amazon documentation on
|
||||||
|
Reference in New Issue
Block a user