使用restic备份到腾讯云

1、设置环境变量
vim /etc/profile

export AWS_ACCESS_KEY_ID=xxxxx
export AWS_SECRET_ACCESS_KEY=xxxx
export RESTIC_REPOSITORY=s3:https://cos.ap-guangzhou.myqcloud.com/4test-1251585123/restic
export RESTIC_PASSWORD=1234

存储桶地域:ap-guangzhou
桶名:4test-1251585123
repo目录:restic

2、创建repo
./restic init

3、备份
./restic backup /xxx

posted @ 2023-12-30 10:08  oywzzc  阅读(144)  评论(0)    收藏  举报