Skip to main content

Enable versioning in S3

Versioning in S3 is keeping multiple variants of an object in the same bucket. you can use the S3 versioning feature to preserve, retrieve, and restore every version of every object stored in your buckets. With versioning, you can recover more easily from both unintended user actions and application failures. If you enable versioning for a bucket, S3 automatically generates a unique version ID for the object that is being stored. For example, in one bucket you can have two objects with the same key but different version IDs, such as photo.png (version 1) and photo.png (version 2). to enable versioning, follow the instructions below.

  • Open S3 Browser on your computer.

S3 Browser - Open

  • On the S3 browser, click bucket, then select Edit Versioning Settings.

S3 Browser - Edit Versioning Settings

  • It will appear Bucket Versioning Settings window, tick the checkbox of Enable versioning for test-bucket then click OK.

Edit Versioning Settings - Enable versioning for test-bucket

  • Now the versioning feature is enabled, you can try to upload a file with the same filename that is in the bucket. For example, we will upload a file named 4.1 Object Storage - Create Object Storage.png with a different Size. It can be seen in the Version section there is no versioning history of this file.

The Versioning Feature is Enabled

  • After trying to upload a file named 4.1 Object Storage - Create Object Storage.png, there will be two versions for the file. and those are two different files.

S3 Browser - Versions