Lifecycle
You can manage your files in a cost-effective way using Arvancloud's Lifecycle feature. This feature helps you automatically delete all or some of your objects at specified intervals by defining simple rules. For example, if you regularly upload your website/application log to the Object storage and you only need it for a week or a month, you keep multiple copies of an object, or you have incomplete uploads, you can define a Lifecycle rule to delete them after this time automatically.
Enable Lifecycle
To set the lifecycle feature, you need to define rules to specify when objects expire, after which Arvancloud will automatically delete them. From the "Buckets" menu in the Arvancloud panel, select the bucket for which you want Lifecycle to be activated and enter the "Operations" section.
In the "Lifecycle" section, click on the "Create Lifecycle Rule" button. On this page, you must enter the rule settings based on your needs:
Rule Name
Choose an arbitrary name for the lifecycle rule. This name must be written in English letters and can include - and _.
Rule Scope
In this section, you can specify which objects the rule should be applied to.
- All objects: By selecting this option, the rule will be applied to all objects in the bucket.
- Filtered: In this case, you can filter objects based on Prefix, tag or size of the object and define the rule only on a certain category of objects.
Apply to Current Version
By selecting this option and specifying the expiration time of the object, its current version will be deleted after the expiry time, and the last previous version will become the current version.
Delete Noncurrent Versions
In this case Expiration time must be specified. With this, a certain number of copies remain after the expiration time, and the rule does not apply to them.
Delete Incomplete Multipart Uploads
To delete incomplete uploads, it is enough to specify their expiration time in this section. The reason for setting the expiration time is to ensure that the upload process is complete.
At the end, click the "Save" button to apply the rule to the box.
Manage Lifecycle
To view and manage the Lifecycle rules defined on the buckets, you can edit or delete these rules or define a new rule from the "Actions" menu of each one.