Archive specific objects using lifecycle policies based on size, prefix, or combined filtering rules.
Yes. You can customize the lifecycle policy on a Vultr Standard Object Storage bucket to selectively archive objects based on size, prefix, or a combination of both. Objects that do not match the lifecycle policy filters remain in your bucket and are not transitioned to Archival, meaning a single bucket can have objects in both Standard and Archival storage at the same time.
Note that on a standalone Archival Object Storage subscription, the lifecycle policy is fixed and cannot be permanently customized. All objects are transitioned to Archival by default.
The VULTR_ARCHIVE storage class supports the following filter elements:
Prefix — targets objects under a specific path or folderObjectSizeGreaterThan — targets objects larger than a specified size in bytesObjectSizeLessThan — targets objects smaller than a specified size in bytesMultiple filter elements can be combined using an And wrapper.
The following policy transitions all objects under the to_archive prefix to Archival immediately:
The following policy transitions all objects larger than 1 GB to Archival immediately:
The following policy transitions all objects larger than 1 GB under the to_archive prefix to Archival after 4 days:
Once you have defined your lifecycle policy in a file, apply it to your bucket using either s3cmd or the AWS CLI.
s3cmd
AWS CLI
To further learn how to retrieve the current lifecycle policy and apply an updated version using the Vultr Console or API, refer to our product documentation.
0 Comments
Be the first to comment and share your perspective with the community.