s3-pit-restore icon indicating copy to clipboard operation
s3-pit-restore copied to clipboard

Doesn't work with Glacier/Deep archive objects that have a delete Marker

Open lutaylor opened this issue 4 years ago • 0 comments

I have found when trying to use the tool to do the actual restore request that it doesn't seem to always work.

When attempting to restore Glacier/DeepArchive objects. I have been getting "botocore.exceptions.ClientError: An error occurred (404) when calling the HeadObject operation: Not Found " Mostly do to Objects in Glacier that have a delete Marker.

This seems to be due to:

https://github.com/madisoft/s3-pit-restore/blob/master/s3-pit-restore#L199

Object https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#object has no options for "Version". It is likely looking for the object to get the restore value but it can’t find it since you can’t specify a version.

Might consider dropping the actual restore process and just use the tool to identify what needs to be restored and recommend s3 batch operations for Glacier/DeepArchive (which is how I am currently using the tool).

lutaylor avatar Oct 05 '20 20:10 lutaylor