Download the S3 bucket to your local ./storage folder
cd <your_app>
AWS_ACCESS_KEY_ID=<key> AWS_SECRET_ACCESS_KEY=<secret> aws s3 sync s3://<bucket_name> storage
And then run a script to add the missing subfolders expected by Active Storage
#script.rb