Files
s3-migrate/scripts/02-copy.sh
abearxiong b6d8af60a1 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.
2026-02-06 19:11:02 +08:00

14 lines
488 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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