tiup br backup full -u “<pd_addr>:2379” --storage “s3://<桶的名字>” --s3.endpoint=“https://cos.ap-beijing.myqcloud.com” --send-credentials-to-tikv=true --ratelimit 100 --log-file backuptable.log
–s3.endpoint 这个填离你的机器最新的地址
–ratelimit 要有合理的限速,不然备份很容易占满带宽导致备份一直报错。
–storage “s3://<桶的名字>?access-key=xxxxxx&secret-access-key=xxxxx&endpoint=https://cos.ap-beijing.myqcloud.com/”
storage也可以这样写,把access-key和secret-access-key写在里面。但极度不推荐,因为不安全,还是放配置文件更好。