DEV Community

Sachin
Sachin

Posted on

Versioning in S3

  • We can understand the create the bucket and upload the object and access the object

What is versioning in s3

it is the process of restoreation

  • Replicated the object(restore the deleted the object and file)

  • Version
    i gave simple example of version if you have text file if you write hello and saved the file this is called version 1, and edit the file add some content like hello good morning this is called version 1.2 this is called the version

How to enable the version in s3

Go inside the bucket

select the properties
edit the version of inside the property

select the enable and save changed

How to recover the object

Now we upload the file and deleted the file

Now switch on the version

when we switch on the version

you can see that actual object inside the deleted marker the deleted marker is wall kind of thing behind that object inside when we deleted the object whenever the we enable the version it is not deleted it is actually behind the deleted marker
you can object back you need to deleted the deleted the deleted marker

we deleted the delete marker and disable the version
we replicated the object

Version in s3

we create txt file name demo.txt inside in heloo


upload the bucket this file

add more content the the demo file again upload

see that

when we upload same file two time it save as version

this is version 1

this is version 2

Top comments (0)