- Newest
- Most votes
- Most comments
To perform a recursive copy for an entire prefix of objects that have be restored from the Glacier storage class and overwrite existing objects with the Amazon S3 Standard storage class, you can try to running the following command:
aws s3 cp s3://awsexamplebucket/dir1/ s3://awsexamplebucket/dir1/ --storage-class STANDARD --recursive --force-glacier-transfer
To perform a recursive copy for an entire prefix of objects that have been restored from the Glacier storage class to the Standard storage class in another bucket, you can try running the following command:
aws s3 cp s3://awsexamplebucket1/dir1/ s3://awsexamplebucket2/dir1/ --storage-class STANDARD --recursive --force-glacier-transfer
For more information about how to download multiple objects that have been restored from GLACIER, please refer to the following link: https://aws.amazon.com/premiumsupport/knowledge-center/restore-s3-object-glacier-storage-class/
If the temporary copy of the object is no longer available, you will have to restore the objects once more before you will be able to successfully run the the above commands. You can refer to the following link for step-by-step instructions on how to restore thousands of objects: https://aws.amazon.com/premiumsupport/knowledge-center/s3-batch-operation-initiate-restore/
Relevant content
- Accepted Answerasked 7 months ago
- AWS OFFICIALUpdated a year ago