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

# Enable versioning in S3

**Versioning** in Amazon S3 is a feature that keeps multiple versions of an object within the same bucket. You can use S3 Versioning to preserve, retrieve, and restore every version of every object stored in your buckets. With Versioning enabled, you can recover more easily from unintended user actions and application failures. When Versioning is enabled for a bucket, Amazon S3 automatically generates a unique version ID for each object stored. For example, a bucket can contain 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 steps below.

{% hint style="info" %}
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></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></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></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></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></figcaption></figure>
