s3tools / s3cmd

Official s3cmd repo -- Command line tool for managing S3 compatible storage services (including Amazon S3 and CloudFront).

Home Page:https://s3tools.org/s3cmd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to restore items from INTELLIGENT_TIERING class to standard

marcgug opened this issue · comments

Using a restore command on an object that is in the INTELLIGENT_TIERING class always fails with this error:

ERROR: S3 error: 400 (InvalidArgument): INTELLIGENT_TIERING objects are not subject to restore expiry. Do not specify Days when restoring this object

I've tried specifying --restore-days=0 and that just produces the error ERROR: Parameter problem: You must restore a file for 1 or more days

For example here is the command I am using:

s3cmd restore s3://bucketName/folder/file.png

What matters is that the object is in the INTELLIGENT_TIERING storage class.