feat: Script to migrate images between providers #9117
+141
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Description
Storage migration functionality, which allows the transfer of images from one on-premises provider to another (e.g. AWS, Google, etc.) using Active Storage.
I ran the unit and integration tests and they all passed correctly.
The command to execute the migration is
FROM=from_service TO=to_service rake storage:migrate
Fixes #7907
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
I have tested the storage migration functionality by running the provided unit and integration tests. Additionally, I manually tested the migration process in a local development environment by following these steps:
Set up two storage services (e.g., AWS S3 and Google Cloud Storage) with valid configurations.
Execute the
FROM=local TO=amazon rake storage:migrate
task with appropriate FROM and TO arguments to migrate blobs between the services.Verified that the blobs were successfully transferred to the target storage service.
Checked for any error messages or unexpected behavior during the migration process.
Checklist: