mc admin bucket remote add

该命令用来添加新的远程目标,语法如下:

C:\>mc admin bucket remote add -h
NAME:
  mc admin bucket remote add - add a new remote target

USAGE:
  mc admin bucket remote add TARGET http(s)://ACCESSKEY:SECRETKEY@DEST_URL/DEST_BUCKET [--path | --region | --bandwidth] --service

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
  --path value                  bucket path lookup supported by the server. Valid options are '[on,off,auto]' (default: "auto")
  --service value               type of service. Valid options are '[replication]'
  --region value                region of the destination bucket (optional)
  --bandwidth value             Set bandwidth limit in bits per second (K,B,G,T for metric and Ki,Bi,Gi,Ti for IEC units)
  --sync                        enable synchronous replication for this target. Default is async
  --healthcheck-seconds value   health check duration in seconds (default: 60)
  --disable-proxy               disable proxying in active-active replication. If unset, default behavior is to proxy
  --help, -h                    show help

远程目标机器的URL地址语法如下:

http(s)://ACCESSKEY:SECRETKEY@DEST_URL/DEST_BUCKET

其中:

  • DEST_BUCKET:要访问的远程主机中的存储桶名称

  • DEST_URL:远程机器的 IP 地址

  • ACCESSKEY:也称为“用户名”

  • SECRETKEY:也称为“密码”

示例

(1)在 https://minio.siteb.example.com 上的区域 “us-west-1” 中为存储桶 “sourcebucket” 设置一个新的远程复制目标“targetbucket”。

C:\> mc admin bucket remote add sitea/sourcebucket https://foobar:foo12345@minio.siteb.example.com/targetbucket  --service "replication" --region "us-west-1"

(2)在 https://minio.siteb.example.com 上的区域 “us-west-1” 中为存储桶 “sourcebucket” 设置一个新的远程复制目标 “targetbucket”,带宽设置为每秒 2 Gb。 启用同步复制到目标并每 100 秒执行一次目标的健康检查

C:\> mc admin bucket remote add sitea/sourcebucket https://foobar:foo12345@minio.siteb.example.com/targetbucket  --service "replication" --region "us-west-1 --bandwidth "2G" --sync
说说我的看法
全部评论(
没有评论
关于
本网站属于个人的非赢利性网站,转载的文章遵循原作者的版权声明,如果原文没有版权声明,请来信告知:hxstrive@outlook.com
公众号