In case Replication of ILM Expiry rules is disabled, mention the same
in `mc admin replicate status ALIAS` output.
Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
Current mc admin bucket is visible under 'mc admin' however, mc admin
bucket will not show sub-commands, which is confusing.
Hide mc admin bucket and make mc admin bucket subcommands visible for
now, until removed later.
There was a validation that said `--json` is supported only when
`--airgap` is also passed for SUBNET related `mc support` commands.
Remove this validation to allow `--json` to be passed even in online
mode. In this scenario, print a status JSON after upload to SUBNET.
In some very rare cases the license can contain a nil uuid
(00000000-0000-0000-0000-000000000000). Do not validate it against the
cluster's deployment id during registration.
Users would expect the mirror will not override anything unless --overwrite
flag is specified. However, currently --preserve will activate
--overwrite, which is not needed. This commit will fix this behavior.
This flag works in conjunction with `--recursive` and sets tags for all
the bucket objects minus the subdirs.
Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
When the report is generated in airgap mode, mc shows a message
MinIO diagnostics report saved at<filename>
Here a space is missing between 'at' and the filename. Add the same.
Currently if we don't use absolute paths in mirror command, absolute path of
source gets appended to the target path and so in destination object gets
mirrored to wrong prefix / path.
For example say source object path is `/tmp/source/prefix/a.txt` and mirror
command executed from `/tmp` dir as `mc mirror --json --watch source xyz`,
the object in target gets mirrored to location `xyz/tmp/source/prefix/a.txt`.
Also any new file created gets copied properly though.
```
mc mirror --json --watch source/ xyz/
{
"status": "success",
"source": "/tmp/source/prefix/a.txt",
"target": "xyz/tmp/source/prefix/a.txt",
"size": 0,
"totalCount": 1,
"totalSize": 0
}
{
"status": "success",
"source": "/tmp/source/b.txt",
"target": "xyz/b.txt",
"size": 0,
"totalCount": 2,
"totalSize": 0
}
```
With the fix now after running the command `mc mirror --json --watch source xyz`
the object would correctly get copied to location `/tmp/xyz/prefix/a.txt` as below
```
{
"status": "success",
"source": "/tmp/source/prefix/a.txt",
"target": "xyz/prefix/a.txt",
"size": 0,
"totalCount": 2,
"totalSize": 0
}
{
"status": "success",
"source": "/tmp/source/b.txt",
"target": "xyz/b.txt",
"size": 0,
"totalCount": 1,
"totalSize": 0
}
{
"status": "success",
"source": "/tmp/source/c.txt",
"target": "xyz/c.txt",
"size": 0,
"totalCount": 3,
"totalSize": 0
}
```
Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>