minio / docs

MinIO Object Storage Documentation
https://docs.min.io/minio/baremetal
Creative Commons Attribution 4.0 International
541 stars 289 forks source link

[BUG] `mc batch` incorrect command examples #1235

Closed ramondeklein closed 3 weeks ago

ramondeklein commented 4 weeks ago

The mc batch generate and mc batch start commands show the following syntax:

mc [GLOBALFLAGS] batch generate \
                       TARGET   \
                       JOBTYPE

where TARGET is described as "The alias used to generate the YAML template file. The specified alias does not restrict the deployment(s) where you can use the generated file.". Although the syntax specifies the TARGET, all examples use mc batch generate myminio/mybucket replicate.

Although it works with specifying a bucket, the bucket-name is ignored and it would be better to leave them out, so:

mc batch start myminio/mybucket jobfile.yaml

should be:

mc batch start myminio jobfile.yaml

and

mc batch replicate myminio/mybucket replicate

should be:

mc batch replicate myminio replicate
djwfyi commented 3 weeks ago

This is a good catch. Fixing.