Restoring objects from S3 cloud-tier storage
You can restore the objects from the cloud back into Ceph Object Gateway cluster using S3 Restore API on the transitioned object.
Before you begin
Ensure the following prerequisites are met before restoring objects from S3 cloud-tier storage.
- Target path created on Amazon S3.
- retain_head_object should be set to true while configuring cloudtier storage-class to be able to restore from cloud service.
s3cmdinstalled on the bootstrapped node.- Ensure user credentials provided for that cloud-tier storage class remain valid for the
restorefunction to work properly. - For
cloud-s3-glaciertier types, be sure that the glacier_restore_days and glacier_restore_tier_type options are correctly set. For more information, see Transitioning data to Amazon S3 cloud service.
About this task
By default, objects are restored to STANDARD storage-class. However, you can configure the storage class to which the objects need to be restored to by setting the restore_storage_class option.
If the null version of an object is not the latest version, do not specify version-id null when issuing a restore-object request.
For example, suppose an object named object1 is uploaded to a bucket called testbucket1, transitioned to the cloud, and then restored. Later, versioning is enabled on testbucket1, and a new version of object1 is uploaded. At this point, the original (null) version is no longer the latest.
In this case, when restoring object1, you should omit the --version-id null parameter from the restore-objectcommand.
Procedure
What to do next
Check the status of the restore using the S3 head-object request.
[root@host01 ~]$ aws s3api --ca-bundle /etc/pki/ca-trust/source/anchors/myCA.pem --profile rgw --endpoint https://host02.example.com:8043 --region default head-object --key transition1 --bucket transition