Restore objects stored in S3 under the Glacier storage class based on 'directories' and 'subdirectories'
Python - Windows: https://www.python.org/downloads/windows/ Mac:https://www.python.org/downloads/mac-osx/
Boto3 - pip install boto3
AWSCLI - pip install awscli
- Edit GlacierRestore.py with your bucket name under BUCKET and directory path needed under PREFIX
- Run GlacierRestore.py with “python GlacierRestore.py” This is using the "Standard" Glacier restore which will take 3-5 hours
- Navigate to the local folder that you will restore S3 Objects to
- Execute $ aws s3 cp --recursive --force-glacier-transfer "s3://BUCKETNAME/PATH/TO/FOLDER/" ./ This will download all objects in the above path to your current directory. Folders and subfolder structure will remain intact. Double quotations are needed if file names have spaces.