Movatterモバイル変換


[0]ホーム

URL:


Retaining multiple versions of objects with S3 Versioning - Amazon Simple Storage Service
DocumentationAmazon Simple Storage Service (S3)User Guide
Unversioned, versioning-enabled, andversioning-suspended bucketsUsing S3 Versioning with S3 Lifecycle

Retaining multiple versions of objects with S3 Versioning

Versioning in Amazon S3 is a means of keeping multiple variants of an object in the same bucket.You can use the S3 Versioning feature to preserve, retrieve, and restore every version ofevery object stored in your buckets. With versioning you can recover more easily from bothunintended user actions and application failures. After versioning is enabled for a bucket,if Amazon S3 receives multiple write requests for the same object simultaneously, it stores allof those objects.

Versioning-enabled buckets can help you recover objects from accidental deletion oroverwrite. For example, if you delete an object, Amazon S3 inserts a delete marker instead ofremoving the object permanently. The delete marker becomes the current object version. Ifyou overwrite an object, it results in a new object version in the bucket. You can alwaysrestore the previous version. For more information, seeDeleting object versions from aversioning-enabled bucket.

By default, S3 Versioning is disabled on buckets, and you must explicitly enable it. Formore information, seeEnabling versioning on buckets.

Unversioned, versioning-enabled, andversioning-suspended buckets

Buckets can be in one of three states:

You enable and suspend versioning at the bucket level. After you version-enable abucket, it can never return to an unversioned state. But you cansuspend versioning on that bucket.

The versioning state applies to all (never some) of the objects in that bucket. Whenyou enable versioning in a bucket, all new objects are versioned and given a unique version ID. Objects that already existed in the bucket at the time versioning was enabled will thereafteralways be versioned and given a unique version ID when they are modified by future requests. Note the following:

Using S3 Versioning with S3 Lifecycle

To customize your data retention approach and control storage costs, use objectversioning with S3 Lifecycle. For more information, seeManaging the lifecycle of objects. Forinformation about creating S3 Lifecycle configurations using the AWS Management Console, AWS CLI, AWS SDKs, orthe REST API, seeSetting an S3 Lifecycle configuration on a bucket.

For information about working with S3 Versioning, see the following topics.

Monitoring and logging
S3 Versioning

[8]
ページ先頭

©2009-2025 Movatter.jp