File versioning in File Repository MinIO

The File Repository on MinIO supports file versioning, so that we can have a snapshot of the different changes that a file has undergone in the file repository.

File versioning is disabled by default, since having this change history stored requires more disk storage space.

Enabling file versioning requires it to be done at the bucket level by a platform administrator, so if we do not have privileges, we will have to request it to a platform administrator.

Enable Versioning

An administrator can enable file versioning in a bucket by logging into the platform Control Panel and selecting from the menu: DevOps Tools > Files Management > MinIO

image-20240225-145204.png

From here, we will open the MinIO Management Console by clicking on MinIO Console.

image-20240225-145520.png

This will open the MinIO management console, where we need to locate and click on the Administrator > Buckets option in the menu.

We will select the Bucket where we want to enable versioning:

In the Versioning section, we can see that it is currently not enabled. Click to edit and proceed to enable it. We can see that two types of exclusions can be applied:

  • By prefix in the file name.

  • Prevent folders from being versioned.

Versioning Process

Once versioning is enabled on a bucket, whenever a file is overwritten, the previous version will not be deleted but versioning will be applied to it.

For example, a document in our bucket:

We modify it locally and upload it again.:

When versioning is enabled, we have the option Display Object Versions.

We can view, download, or even delete the different versions of the file.

Â