Versioning
Preserve previous versions of objects in a Stook Bucket and recover overwritten or deleted data.
Configure Versioning to preserve previous versions of objects when they are overwritten or deleted in a Stook Bucket.
Versioning provides three modes: Off, On, and Suspended. When Versioning is enabled, previous object versions remain available until they are permanently deleted.
How Versioning Works
Versioning supports the following modes:
Off
Overwrites the previous copy of an object.
On
Preserves previous versions when objects are overwritten or deleted.
Suspended
Stops creating new versions while preserving existing versions.
Previous object versions consume storage capacity while they remain in the Stook Bucket.
When a versioned object is deleted without specifying a version ID, the object is hidden by a delete marker. Previous versions remain stored and can be restored.
Versioning Dependencies
Versioning must be On to use:
Configure Versioning
Open the Stook Bucket
In the Medianova Control Panel, select Stook Object Storage → Buckets, then select the Stook Bucket you want to configure.
Work with Object Versions
Use an S3-compatible client, such as the AWS CLI, to list, download, restore, and permanently delete object versions.
List Object Versions
This command lists the stored versions and delete markers associated with the specified object key.
Download an Earlier Version
This command downloads the specified object version to the local file path without changing the current version stored in the Stook Bucket.
Restore a Deleted Object
A deleted object is hidden by a delete marker. To restore the object, identify the delete marker with list-object-versions, then remove that delete marker:
This command permanently removes the specified delete marker. Removing the delete marker makes the previous object version available again.
Permanently Delete an Object Version
This command permanently removes the specified object version. The deleted version cannot be recovered.
Configure Versioning with the API
Use the bucket settings endpoint to configure Versioning:
To enable Versioning, send:
The versioning field supports the following values:
unversioned
Off
enabled
On
suspended
Suspended
After Versioning has been enabled, unversioned can no longer be used for the Stook Bucket. Use suspended to stop creating new versions.
Troubleshooting
Versioning cannot be switched off
After Versioning has been enabled, it cannot return to Off.
Select Suspended instead. Existing versions remain available, but new versions are no longer created.
Versioning cannot be suspended while Object Lock is enabled
Object Lock requires Versioning to remain On.
Versioning cannot be suspended while Object Lock is enabled on the Stook Bucket.
Versioning cannot be suspended while MFA Delete is enabled
Disable MFA Delete before suspending Versioning.
Disabling MFA Delete requires a valid code from the configured authenticator.
Related Topics
Last updated
Was this helpful?
