该命令用来编辑远程目标,语法如下:
C:\> mc admin bucket remote edit -h
NAME:
mc admin bucket remote edit - edit remote target
USAGE:
mc admin bucket remote edit TARGET http(s)://ACCESSKEY:SECRETKEY@DEST_URL/DEST_BUCKET --arn arn
TARGET:
Also called as alias/sourcebucketname
DEST_BUCKET:
Also called as remote target bucket.
DEST_URL:
Also called as remote endpoint.
ACCESSKEY:
Also called as username.
SECRETKEY:
Also called as password.
FLAGS:
--config-dir value, -C value path to configuration folder (default: "C:\\Users\\Administrator\\mc")
--quiet, -q disable progress bar display
--no-color disable color theme
--json enable JSON lines formatted output
--debug enable debug output
--insecure disable SSL certificate verification
--arn value ARN of target
--sync value enable synchronous replication for this target. Valid values are enable,disable.Defaults to disable if unset
--proxy value enable proxying in active-active replication. Valid values are enable,disable.By default proxying is enabled.
--bandwidth value Set bandwidth limit in bits per second (K,B,G,T for metric and Ki,Bi,Gi,Ti for IEC units)
--healthcheck-seconds value health check duration in seconds (default: 60)
--path value bucket path lookup supported by the server. Valid options are '[on,off,auto]' (default: "auto")
--help, -h show help远程目标机器的URL地址语法如下:
http(s)://ACCESSKEY:SECRETKEY@DEST_URL/DEST_BUCKET其中:
DEST_BUCKET:要访问的远程主机中的存储桶名称
DEST_URL:远程机器的 IP 地址
ACCESSKEY:也称为“用户名”
SECRETKEY:也称为“密码”
(1)使用 arn 编辑现有远程目标的凭据,其中在 sitea 上的 sourcebucket 到 siteb 上的 targetbucket 之间配置了远程目标。
C:\> mc admin bucket remote edit sitea/sourcebucket https://foobar:newpassword@minio.siteb.example.com/targetbucket --arn "arn:minio:replication:us-west-1:993bc6b6-accd-45e3-884f-5f3e652aed2a:dest1"(2)使用指定的 ARN 在站点上编辑 sourceBucket 的远程目标以禁用代理并启用同步复制
C:\> mc admin bucket remote edit sitea/sourcebucket --sync "enable" --proxy "disable" --arn "arn:minio:replication:us-west-1:993bc6b6-accd-45e3-884f-5f3e652aed2a:dest1"