I am going to try to migrate my existing images on S3 to Digital Ocean Spaces. An obvious path is to use the rake tasks to move the images back to the DO droplet and then run a eventually-available rake task to move the images from the DO droplet to DO Spaces. Since my droplet doesn’t have enough space for all the S3 images, I’ve come up a potential idea that lets me bypass my droplet’s space constraint. Can anyone comment whether it would work, or share if you see obvious issues?
- Download all S3 images into my own hard drive, then upload them all into Digital Ocean spaces, maintaining all folder structure.
- Use a SQL query to change the ‘url’ of any file in the ‘uploads’ table from the S3 domain to the DO Space domain
That seems to be a faster way to do things, since the migration rake tasks had been very slow for me in the past, like 1mb / second.
I can try with one file, but want to ask anyone sees any obvious issues before I try it.