Bucket Storage Lifecycle Policy

Tebi allows you to define when objects expire and are deleted automatically.

Transition actions are not currently implemented.

Bucket Lifecycle Configuration Example

Please note that Tebi allows you to specify several <Prefix> rules inside a single <Filter> section. This may greatly simplify your configuration in some cases. However, these rules will not be supported by other S3-compatible object storage providers.

 1<?xml version='1.0' encoding='UTF-8'?>
 2<LifecycleConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
 3<Rule>
 4    <ID>TEST1</ID>
 5    <Status>Enabled</Status>
 6    <Expiration>
 7        <Hours>1</Hours>
 8    </Expiration>
 9</Rule>
10<Rule>
11    <ID>TEST2</ID>
12    <Status>Enabled</Status>
13    <Expiration>
14        <Days>1</Days>
15        <Hours>5</Hours>
16    </Expiration>
17    <Filter>
18        <Prefix>logs/</Prefix>
19        <Prefix>logs10/</Prefix>
20        <Prefix>logs11/</Prefix>
21        <Prefix>logs12/</Prefix>
22    </Filter>
23</Rule>
24<Rule>
25    <ID>TEST3</ID>
26    <Status>Disabled</Status>
27    <Expiration>
28        <Days>3</Days>
29    </Expiration>
30    <Filter>
31        <Prefix>logs2/</Prefix>
32    </Filter>
33</Rule>
34<Rule>
35    <ID>UPLOADS</ID>
36    <Status>Enabled</Status>
37    <AbortIncompleteMultipartUpload>
38        <DaysAfterInitiation>1</DaysAfterInitiation>
39    </AbortIncompleteMultipartUpload>
40</Rule>
41</LifecycleConfiguration>

See Also

Refer here for more information.