download free 30 days trial version buy bucket explorer
Documentation  Download  Purchase  Support  FAQs   Forum   ScreenShots & Demos

Restore a Version of Amazon S3 Object (PUT Object- Copy)

As Amazon S3 allows you to copy S3 Object to different path, similarly, you can also copy your version object (Overwritten S3 Object) to any Amazon S3 Bucket . With PUT Object – Copy versioning, you can restore versions of an Object. To authenticate the request, you must have READ access to the source object and WRITE access to the destination bucket. By default, adding the request header x-amz-copy-source identifies the latest version of an object to copy. If you want to copy a different version, you will need too use the versionId subresource.

 

A unique version ID is generated by Amazon S3 for the object being copied which is different from the version ID of the source object.

You can Restore/Copy S3 Version Object on Amazon S3 in two ways:
  1. Restore/Copy Version S3 Object using Amazon S3 API - If you are a programmer, you can write your own program to use S3 REST API - PUT Copy Object. You can read more on AWS website to learn details about using SOAP APIs.
  2. Restore/Copy using Bucket Explorer User Interface - You can copy/restore version files on S3 with mouse clicks using Bucket Explorer.

Restore/Copy versions of an Object using PUT Copy Object REST API

To restore versions of an object, you can request PUT object – Copy versioning. With that, Amazon S3 returns the version ID of the copied object in the x-amz-version-id response header in the response.

Syntax:

The following request copies s3 version object with the specified version ID and it copies into the destination bucket with given destination-object key.


PUT / destination object HTTP/1.1
Host: destination Bucket .s3.amazonaws.com
Date: Wed, 28 Oct 2009 22:32:00 GMT
x-amz-copy-source: /source-bucket/source-object?versionId=versionid
Authorization: signatureValue
 
Restore/Copy versions of an Object using Bucket Explorer- Bucket Explorer allows you to restore the older version of an object. Restore can not be performed if the content or selected version object which you want to restore is the same as the latest version of that S3 object.

Steps to restore older version:

  1. Run Bucket Explorer.
  2. Select any Bucket on which versioning has been set.
  3. Right click on that Bucket and choose "List All Versions" option or click on "List Version" objects from object toolbar.
  4. It will list all version objects of selected Bucket.
  5. Now select any version object that you want to restore.
  6. Right click on the selected object and click on "Restore" option.
  7. When Restore operation is complete, a balloon tool-tip "Operation got success" will appear at the bottom left corner.
  8. Click on "Switch To Normal List" button in object toolbar and you will find restored object.
Note:
  • If selected version object has a delete status, restore operation cannot be performed on it.
  • You can also perform this operation at Transfer Panel .