Amazon S3 and Backblaze B2 set retention with object locks, BorgBackup prunes archives, and Exchange Online keeps permanently deleted items for 14 days by default.
Key takeaways: retention limits by tool
- Amazon S3: You can specify a retain-until-date with variable retention, according to Amazon Web Services.
- Backblaze B2: You cannot enable Object Lock on a restricted bucket, such as shared buckets or snapshots, according to Backblaze.
- BorgBackup: Without filters, all archives in the repository are eligible for deletion, so matching prefixes are required, according to BorgBackup.
- Exchange Online: Permanently deleted items are kept for 14 days by default before being removed from the Recoverable Items folder, as noted by Microsoft.
How the four tools were compared from their own help pages
This comparison relies on official documentation for Amazon Web Services, Backblaze, BorgBackup, and Microsoft. Each section of this page draws its retention rules directly from the vendor’s published help materials rather than third-party summaries. For example, the note that Backblaze Object Lock functions identically to the AWS feature comes straight from their Cloud Storage Object Lock page. Keeping every claim tied to a named source prevents one publisher’s rule from being mistaken for a universal standard. The scope of each fact remains limited to the specific product or service documented by that vendor. This approach ensures the office manager can verify each setting against the exact documentation they will encounter during configuration. The goal is to show where each tool sets retention using only what its own help pages state.
Amazon S3 object lock: retention dates, holds and policy limits
Amazon Web Services documents retain-until-dates with variable retention for locked objects. Amazon Simple Storage Service lets you define how long an object stays locked before it can be deleted. You can specify a retain-until-date with variable retention, which sets a specific future date when the lock expires Amazon Web Services. This approach is useful when your office has a fixed compliance deadline for certain file types. Instead of keeping files locked indefinitely, you assign a clear end point to the protection period.
While an event hold is active on an object, you can change the event hold duration. This flexibility allows you to extend the protection window if circumstances change, such as when a legal review takes longer than expected Amazon Web Services. If you initially set a hold for a short period but realize you need more time, you do not have to remove and reapply the hold. You simply adjust the duration directly within the existing hold state.
To control the length of retention periods, the service offers a condition key that helps establish the allowable retention period. This feature works within a bucket policy to set limits on retention periods Amazon Web Services. It acts as a guardrail for the entire bucket, keeping retention periods within the limits you set. This is particularly relevant for solo IT admins who want to enforce consistent rules across multiple storage locations.
The documentation points to setting limits on retention periods with a bucket policy for further details on implementing these controls. This method involves configuring the bucket’s access permissions to include specific conditions related to Object Lock Amazon Web Services. When you apply these policies, you are defining the boundaries within which any user must operate when applying retention settings. It shifts the focus from individual object configuration to a broader, policy-driven management style. For an office manager, this means the retention rules are baked into the infrastructure rather than relying on individual user discipline.
Backblaze B2 and BorgBackup lock rules compared with prune rules
Backblaze B2 Object Lock and BorgBackup prune operate on opposite principles. One locks objects so they cannot be deleted until a condition is met; the other deletes archives based on matching rules. Understanding where each setting lives helps you avoid accidental data loss or configuration errors.
Backblaze B2 Object Lock
Object Lock in Backblaze Cloud Storage is available through two interfaces: the S3-Compatible API and the Native API, according to Backblaze. If your office already uses tools that speak the S3 protocol, you can manage these locks without learning a new interface. The feature was previously referred to as File Lock, so older documentation or scripts might use that name. This naming change matters if you are migrating existing configurations or reading older help articles.
A critical limitation exists for restricted buckets. You cannot enable Object Lock on a restricted bucket, such as shared buckets or snapshots, or on a bucket that contains a source replication configuration, according to Backblaze. Before attempting to configure retention, check your bucket type. This constraint means you must plan your bucket architecture before deciding to use object-level immutability.
BorgBackup Prune
BorgBackup handles retention differently. Instead of locking items, it prunes (deletes) old archives. The borg prune command treats all archives in the repository as eligible for deletion unless you specify filters, according to BorgBackup. This default behavior is aggressive.
To prevent this, you must distinguish different data sets by specifying matching prefixes, as noted by BorgBackup. For example, if you back up both "server-a" and "server-b," you should use prefix filters to ensure pruning one set does not affect the other.
When testing prune commands, be aware of option conflicts. The --stats / --quick-stats and --dry-run options are mutually exclusive, meaning you cannot use them together, according to BorgBackup. You must choose one of them for each command invocation. This limitation requires you to run separate commands to get full visibility into both the scope and the specific actions of a prune operation.
Practical comparison
Backblaze B2 focuses on preventing deletion through locks, while BorgBackup focuses on managing storage space through selective deletion. Your choice depends on whether you need immutability for compliance or efficient storage management for local backups. For recovery steps, see Recover old office files: 4 backup tools compared.
Exchange Online, the 14-day default and the 30-day cap
When you permanently delete an item in Microsoft Outlook or Outlook on the web, the system moves it to a specific folder called Recoverable Items > Deletions. According to Microsoft, items remain in this location for 14 days by default. This initial period defines the baseline window during which deleted content stays accessible before being purged from the mailbox structure.
You have the ability to modify this duration, but the adjustment has a hard ceiling. The documentation states that you can change how long items are kept, up to a maximum of 30 days. In their examples, they increase the retention period to 30 days, identifying this as the maximum for Exchange Online mailboxes. Whether you adjust a single mailbox or apply the setting across the organization, the upper limit remains fixed at this thirty-day mark. For instance, one example shows setting all user mailboxes in the organization to keep deleted items for 30 days.
A critical exception exists when legal processes are involved. If you place a mailbox on litigation hold, the retention limit is ignored. This means the standard fourteen-day default or the thirty-day maximum no longer dictates the lifecycle of those items. Instead, the hold status overrides the configured timeframes, keeping the data available regardless of the day count specified in the retention settings. This distinction is vital for any office manager managing compliance requirements, as the usual time-based cleanup does not apply to held mailboxes.
To configure these settings, you must distinguish between individual adjustments and organization-wide changes. The source provides examples for both approaches, such as increasing the period for specific users or applying the thirty-day maximum to all user mailboxes. Since the litigation hold ignores the limit, your configuration only affects mailboxes without such holds. For how other tools handle permanent deletion, see Permanent deletion: 4 tools and their recovery limits.
Illustrative example of two keep windows
Picture one office mailbox and one file store. Permanently deleted mail stays available for 14 days. The office then raises that keep window to 30 days, the maximum the setting allows. A second mailbox is on litigation hold, so the retention limit is ignored and the 14-day and 30-day figures do not control those items. On the file store, a locked object gets a retain-until date 30 days ahead with variable retention. The local backup repository holds two archive groups. Matching prefixes keep a prune pass on one group from treating the other group as eligible for deletion. A test run can use a dry-run option or a stats option, but not both in one command, so the office runs two commands.
Retention settings reference table: which fits which job
The following table maps each publisher to its specific retention setting mechanism and the documented limit or caution found in its own help page. Use it to match a setting to your situation without mixing up rules from different products.
| Publisher | Retention Mechanism | Documented Limit or Caution |
|---|---|---|
| Amazon Web Services | Variable retention date | You can specify a retain-until-date with variable retention Amazon Web Services. |
| Backblaze | S3-Compatible API and Native API | Object Lock is available using the S3-Compatible API and the Native API Backblaze. |
| BorgBackup | Prune rules without filters | All archives in the repository are eligible for deletion if you do not filter BorgBackup. |
| Microsoft | Recoverable Items folder | Permanently deleted items are kept there for 14 days by default, and you can change that up to a maximum of 30 days Microsoft. |
Today, check the current value of each tool’s keep-for setting against this table before changing anything. If your office uses Exchange Online, verify whether any mailboxes currently have litigation holds enabled before relying on your configured retention period. For a wider look at recovery setup, see File recovery options: 3 tools and setup limits.
FAQ: retention settings across backup and mail tools
What are the main backup retention settings in these tools?
Each tool uses a different mechanism. Amazon S3 lets you specify a retain-until-date with variable retention Amazon Web Services. Backblaze B2 uses Object Lock accessible through its APIs. BorgBackup manages retention through prune rules that treat archives as eligible for deletion unless filtered. Exchange Online sets how long permanently deleted items are kept for each mailbox.
How long does Exchange Online keep a permanently deleted item by default?
According to Microsoft documentation, an item is moved to a folder called Recoverable Items > Deletions and kept there for 14 days, by default Microsoft.
Can I raise Exchange Online deleted-item retention past 30 days?
No, you can change how long items are kept, up to a maximum of 30 days Microsoft. Note that items placed on litigation hold ignore this specific limit, so they may be retained longer regardless of the configured maximum.
Does Object Lock apply to a restricted Backblaze B2 bucket such as a shared bucket?
You cannot enable Object Lock on a restricted bucket, for example, shared buckets or snapshots Backblaze. The rule also excludes buckets that contain a source replication configuration.
Which BorgBackup prune options cannot be used together?
The --stats / --quick-stats and --dry-run options are mutually exclusive BorgBackup.