Add scripts for MinIO client installation and S3 object copying

- Created 01-install.sh to download and set up the MinIO client.
- Created 02-copy.sh to configure MinIO aliases and mirror objects between buckets.
- Added copy.ts to implement S3 object copying functionality using AWS SDK.
This commit is contained in:
2026-02-06 19:11:02 +08:00
commit b6d8af60a1
8 changed files with 1350 additions and 0 deletions

13
scripts/02-copy.sh Normal file
View File

@@ -0,0 +1,13 @@
mc alias set minio http://localhost:9000 ${O_S3_ACCESS_KEY_ID} ${O_S3_SECRET_ACCESS_KEY}
mc alias set tos https://tos-s3-cn-shanghai.ivolces.com ${S3_ACCESS_KEY_ID} ${S3_SECRET_ACCESS_KEY}
mc alias set tos https://tos-cn-shanghai.volces.com ${S3_ACCESS_KEY_ID} ${S3_SECRET_ACCESS_KEY}
# 查看tos桶内对象只做验证用
# mc ls tos/envision
# 桶间同步
mc mirror minio/resources tos/envision --parallel 10
# 查看minio桶内对象只做验证用
# mc ls minio/resources