diff options
author | crupest <crupest@outlook.com> | 2022-11-23 19:22:37 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-23 19:22:37 +0800 |
commit | f083272356417be74a5864d5ef6cfb1878558826 (patch) | |
tree | 6a489c787c073e4b4bc2b722759c098899bfea15 /template | |
parent | fc2b0e84cc359e45c09e81135702babc2284dfb1 (diff) | |
download | crupest-f083272356417be74a5864d5ef6cfb1878558826.tar.gz crupest-f083272356417be74a5864d5ef6cfb1878558826.tar.bz2 crupest-f083272356417be74a5864d5ef6cfb1878558826.zip |
Replace rclone with coscli.
Diffstat (limited to 'template')
-rw-r--r-- | template/coscli-config.yaml.template | 9 | ||||
-rw-r--r-- | template/docker-compose.yaml.template | 4 | ||||
-rw-r--r-- | template/rclone.conf.template | 7 |
3 files changed, 10 insertions, 10 deletions
diff --git a/template/coscli-config.yaml.template b/template/coscli-config.yaml.template new file mode 100644 index 0000000..d0768a3 --- /dev/null +++ b/template/coscli-config.yaml.template @@ -0,0 +1,9 @@ +cos: + base: + secretid: ${CRUPEST_AUTO_BACKUP_COS_ACCESS_KEY_ID} + secretkey: ${CRUPEST_AUTO_BACKUP_COS_SECRET_ACCESS_KEY} + sessiontoken: "" + buckets: + - name: ${CRUPEST_AUTO_BACKUP_BUCKET_NAME} + alias: crupest-backup + region: ${CRUPEST_AUTO_BACKUP_COS_REGION} diff --git a/template/docker-compose.yaml.template b/template/docker-compose.yaml.template index fe87da6..af87acc 100644 --- a/template/docker-compose.yaml.template +++ b/template/docker-compose.yaml.template @@ -106,14 +106,12 @@ services: context: ./docker/auto-backup dockerfile: Dockerfile pull: true - args: - - CRUPEST_AUTO_BACKUP_BUCKET_NAME=${CRUPEST_AUTO_BACKUP_BUCKET_NAME} tags: - "crupest/auto-backup:latest" container_name: auto-backup volumes: - "./data:/data" - - "./rclone.conf:/root/.config/rclone/rclone.conf:ro" + - "./coscli-config.yaml:/root/.cos.yaml:ro" restart: on-failure:3 networks: - internal diff --git a/template/rclone.conf.template b/template/rclone.conf.template deleted file mode 100644 index 38ef2dd..0000000 --- a/template/rclone.conf.template +++ /dev/null @@ -1,7 +0,0 @@ -[mycos] -type = s3 -provider = TencentCOS -access_key_id = ${CRUPEST_AUTO_BACKUP_COS_ACCESS_KEY_ID} -secret_access_key = ${CRUPEST_AUTO_BACKUP_COS_SECRET_ACCESS_KEY} -endpoint = cos.${CRUPEST_AUTO_BACKUP_COS_REGION}.myqcloud.com -acl = default |