BetaThis is a live doc! Anyone with edit access can make updates in real time without having to publish.
Edited Mar 18
By Bryan
In progress
barman 目前未能支持 virtual-domain 风格的 S3 地址(bucket name 在域名中),而国内阿里/腾讯均只能使用这种风格(path style 已经被禁用了)
解决方案:
方案一
等待官方修复这个问题 https://github.com/EnterpriseDB/barman/issues/879
方案二
给云服务商提工单为 bucket 开通 virtual-domain 风格的访问权限(腾讯云亲测可以,阿里云不确定)
方案三(不适用于 cnpg)
配置 S3 profile
修改 ~/.aws/config
[default]
s3 =
addressing_style = virtual注意使用时仍然需要输入不含 bucket name 的 url 作为 endpoint url,barman 使用的 boto3 sdk 会自动为域名追加 bucket name