> For the complete documentation index, see [llms.txt](https://docs.cloudeka.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.id/storage/deka-box/enable-versioning-in-s3.md).

# 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.

{% hint style="info" %}
&#x20;If you activate this feature, the old version of the ID will still be stored and will take up storage on your Deka Box.
{% endhint %}

To activate the version feature in S3 Browser, you can follow these steps:

* Open S3 Browser on your computer.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXf1dcP15qN_QR11dnaLgPzTVT293xXDCv-QLJJeiszVdyTcxFg_cylS7xTk-klRi7GfyZBu7yi-djkrbg0m94suT-jfnA6TmT7Kt5s8ZPGMZJ6VRjuolLduq3mXaferJWjnyvFB0xBY9yeg1nnJrBkF1b2V?key=eSucCgatcev0YHFI_1aohA" alt=""><figcaption><p>S3 Browser</p></figcaption></figure>

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

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdr--diw1JFZ3QqgMV1msq7d12k7B_66iPFH8rQtLrE0CFDxihrCF6EVtPmo7K-CW0bbs7rIJ86qSbMMn2M-uM6C7I-rriRJtWeU8uVuvXJrSkRVBcmxwNL0LbRpG1iRTZxLpWmsRtDmign2WdZHPEdjPhvgIHCQtZE48dnUAzEpWgqfrO4MAc?key=qztDC0ExKUrxY5lTSX3msQ" alt=""><figcaption><p>S3 Browser - Edit Versioning Settings</p></figcaption></figure>

* The **Bucket Versioning Settings** window, \[x] tick the checkbox of **Enable versioning for test-bucket** then click **OK**.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd-OCDRms9nHS_bqjTQRuz-ZtIVEgjXdIcy3ebtTewjsU8xlfDdrKXPPTo4bz4YcoDmiSBV4Y6sAcKdDj5uAewu31pb1St5DNloxJhl1cIritKQJBSns6plPOLRMpqaKDperYoOumCP4emThM6zlEwpxHkqiKuN2Eqf5m4taXf6lwjZZKEZWS4?key=qztDC0ExKUrxY5lTSX3msQ" alt=""><figcaption><p>Edit Versioning Settings - Enable versioning for test-bucket</p></figcaption></figure>

* Now that the versioning feature is enabled, you can try uploading a file with the same filename that is in the bucket. For example, we will upload a file called 4.1 Deka Box - Create Deka Box.png with a different Size. It can be seen in the Version section that there is no version history for this file.

  <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcZI-2o3pUd16MpSugCN7H9m7rtloup0htZNUaXl7dB6xemq_k9GzzwaYOhP63yje2BsHHOMnLfuXpqSmvf8pvF-PHLmqtg1aj5KhPCa3IXwm5h_J6q4ReTDNhhtzaXZJ5zjk39m-Bio7lM8mKqcP3ZnpyUN0UDo2XAwLpN2UXlFxzRNOSOmi8?key=qztDC0ExKUrxY5lTSX3msQ" alt=""><figcaption><p>Active Versioning Feature</p></figcaption></figure>
* After trying to upload a file called 4.1 Deka Box - Create Deka Box.png, there will be two versions of the file, and those two files are two different files.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcm4WLK_4lfOWy33-gnpRZDJQQNJ5EHYNeBScQATYV79ezZyODQKTKwjzLl_DqhMMMLbE6tREE3YiOKX5dLvgp8f7r8oDaiIGEeozWlyR_gKmd1O6Q12Naeqon7xN4I8XvJ7DQ5EjLgMx4pXbFd8wC3AgBDcQeuVK_urRXdZgvzwI2odT55SQ?key=qztDC0ExKUrxY5lTSX3msQ" alt=""><figcaption><p>S3 Browser - Versions</p></figcaption></figure>
