Alem
Alem

Reputation: 293

How to download archive from Glacier Deep Archive locally using boto3?

I uploaded zip file on Glacier Deep Archive. Now I want to download the same file locally with boto3 library. What is the way to do it? I tried to find any example, but failed. I have vault_name and archive_id saved. It is less than 1GB in weight. How long does it take to download such a file?

Upvotes: 3

Views: 1404

Answers (1)

Marcin
Marcin

Reputation: 238051

Before you can actually download the object, in boto3 you have to execute restore_object operation. Once the object is restored, you can then download it from S3. From docs:

Objects in the GLACIER and DEEP_ARCHIVE storage classes are archived. To access an archived object, you must first initiate a restore request. This restores a temporary copy of the archived object.

Upvotes: 2

Related Questions