What is Versioning?Amazon S3 Versioning is a feature that keeps multiple versions of the same object (file) in a bucket.So even if someone overwrites or deletes a file, you can restore the previous version.
This means:
It’s like having an automatic backup and history system for your files.
Imagine you store your important project files on S3, such as:
project-report.pdf
Now one day, by mistake, you upload another file with the same name — maybe a corrupted one or a wrong version.
Without versioning, the old file is lost forever.
With versioning:
So versioning mainly helps to:
Protect against accidental overwrites
Recover deleted files
Maintain file history over time
When versioning is enabled on a bucket: