Repository navigation
fix(scripts): use rclone instead of MinIO mc in storage migration script - #810
Conversation
There was a problem hiding this comment.
ℹ️ No critical issues — one documentation follow-up inline.
Approach: sound — defining both remotes through RCLONE_CONFIG_* env vars removes MinIO from the copy path, keeps credentials out of the docker run argv, and the added rclone check --one-way --size-only covers the per-object gap the old count/size heuristic left open.
Reviewed changes — both files in the PR. The load-bearing mechanics check out against the rclone, Docker and AWS docs: env-defined remotes (unset vars are simply not passed into the container), the AWS-vs-Other provider split, --to s3 relying on no_check_bucket so no bucket is created or probed, size --json parsing, and check --one-way --size-only exiting non-zero on missing or size-mismatched objects.
scripts/migrate-storage.sh— copy, stats, and verification now run throughrclone/rclone;--to rustfsstill creates its bucket withrclone mkdir,--to s3requires a pre-existing bucket, the image is pulled up front so a registry failure reports as one, andPACA_MC_IMAGEis replaced byPACA_RCLONE_IMAGE.docs/deployment/README.md— documents the rclone image and the pre-created-bucket requirement for--to s3.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
…S in deployment README
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — the delta since the prior pullfrog review is documentation only (docs/deployment/README.md, +23 lines); the script is unchanged.
docs/deployment/README.md— adds a "Can't pullquay.io/minio/mc?" fallback that runs the manual backup and restore steps withrclone/rclone, defining both remotes throughRCLONE_CONFIG_*env vars passed to Docker by name. This resolves the previous review's follow-up about hosts that 401 against quay.io;rclone mkdiris idempotent, so the restore works whether or not the API already created the RustFS bucket, andupgrade.shleaves the storage credentials untouched so the step-4 restore still authenticates.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

Summary
Follow-up to #809.
scripts/migrate-storage.shcopied objects with MinIO'smcclient fromquay.io/minio/mc. MinIO is deprecated, and the pull fails on some hosts (401 UNAUTHORIZEDfrom quay.io), which the script then misreported as "Cannot read source bucket". This switches the copy to rclone (rclone/rclonefrom Docker Hub), so no MinIO software or image is involved.Changes
RCLONE_CONFIG_*env vars passed to Docker by name, so secrets never appear in thedocker runargv.rclone check --one-way --size-only), in addition to the object-count/size totals. Hashes are not compared because ETags legitimately differ between stores.--to s3no longer creates the bucket: it must already exist, so the key needs nos3:CreateBucket.--to rustfsstill creates its bucket.PACA_MC_IMAGEis replaced byPACA_RCLONE_IMAGE(defaultrclone/rclone).Testing
Both directions run end to end against throwaway containers (a second RustFS container standing in for S3), including an object key with spaces, verification, the
.envrewrite and theapirestart. shellcheck passes. Not yet tried against real AWS S3.