Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restore object from AWS Glacier to S3

I have configured life cycle policy in S3, some of objects in S3 are stored in Glacier class, some of object are still in S3, now I am trying to restore objects from Glacier, I can get object list in S3 by java AWS SDK, how can I know which object is in Glacier storage by AWS SDK? The reason is when I try restore an object not in Glacier, I will have a exception. I wanna avoid this.

like image 868
Xiaomeng Yi Avatar asked Jun 20 '15 05:06

Xiaomeng Yi


People also ask

Can objects be moved from Glacier to any other class?

You can't transition from GLACIER to any other storage class.

How do you restore multiple objects from a Glacier?

For Operation, select Restore. For Restore source, select Glacier or Glacier Deep Archive. For Number of days that the restored copy is available, enter the number of days for your use case. For Restore tier, select either Bulk retrieval or Standard retrieval.

How do I transfer files from Glacier to Galaxy S3?

Retrieving Data from Glacier With Glacier, you have to wait about 3 to 5 hours for the data to be retrieved and put back into S3. That's also why it's so much cheaper. To start a restore, select the file or folder that you want to retrieve and then right-click on it. You'll see an option called Initiate Restore.


1 Answers

The ListObjects Amazon S3 API call can be used to obtain a list of objects in a given bucket.

The list of files returned includes a StorageClass field. It can be one of:

  • STANDARD
  • REDUCED_REDUNDANCY
  • GLACIER

The GLACIER storage class indicates that the contents of the object is currently in Glacier.

like image 169
John Rotenstein Avatar answered Oct 05 '22 23:10

John Rotenstein