由于腾讯云的变动,旧的接入方式的文章貌似不好使了,测试的可用方法如下
根据文档,配置环境变量
export RESTIC_REPOSITORY=s3:https://cos.ap-<地域>.myqcloud.com/test-12345678/
export RESTIC_PASSWORD=
export AWS_ACCESS_KEY_ID=AKIDxxxxxxx
export AWS_SECRET_ACCESS_KEY=xxxxx
调用时候,加上两个参数-o s3.bucket-lookup=dns -o s3.region=<bucket name>
,例如
restic -o s3.bucket-lookup=dns -o s3.region=test-12345678 init