Versioning
This document provides instructions to manage Versioning using the command-line tool. Additionally, these tasks can also be performed using the web console and IONOS S3 Object Storage API.
Commands
To get the versioning state of the bucket:
aws s3api get-bucket-versioning --bucket my-bucket --endpoint-url https://s3-eu-central-2.ionoscloud.com
To enable versioning for the bucket:
aws s3api put-bucket-versioning --bucket my-bucket --versioning-configuration Status=Enabled --endpoint-url https://s3-eu-central-2.ionoscloud.com
To list object versions for the bucket:
aws s3api list-object-versions --bucket my-bucket --endpoint-url https://s3-eu-central-2.ionoscloud.com
To list object versions for the object my-object.txt
:
aws s3api list-object-versions --bucket my-bucket --prefix my-object.txt --endpoint-url https://s3-eu-central-2.ionoscloud.com
Last updated
Was this helpful?