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
identifies the latest version of an object to copy. If you want to copy a different version, you will need too use the
A unique version ID is generated by Amazon S3 for the object being copied which is different from the
of the source object.
You can Restore/Copy S3 Version Object on Amazon S3 in two ways:
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.
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.
The following request copies s3 version object with the specified version ID and it copies into the destination bucket with given destination-object key.
Wed, 28 Oct 2009 22:32:00 GMT
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:
Run Bucket Explorer.
Select any Bucket on which versioning has been set.
Right click on that Bucket and choose
"List All Versions"
option or click on
objects from object toolbar.
It will list all version objects of selected Bucket.
Now select any version object that you want to restore.
Right click on the selected object and click on
When Restore operation is complete, a balloon tool-tip
"Operation got success"
will appear at the bottom left corner.
"Switch To Normal List"
button in object toolbar and you will find restored object.
If selected version object has a delete status, restore operation cannot be performed on it.
You can also perform this operation at