Buy licences
Retention policies

How files expire

A file must pass the age rule, filename rules and every applicable safeguard before a live job can remove it.

Retain 0.7.2 Retention policies with example data
Retention policies · Example data · Select to enlarge

Calculate the cutoff

Retain compares the last modification time to the run time minus the retention period in whole 24-hour days. A file exactly on the cutoff stays. A 30-day rule at 12:00 UTC on 31 March keeps a file last written at 12:00 UTC on 1 March. A file written one minute earlier passes the age test.

Understand the scope

Only direct files in the chosen location are considered. A date embedded in a filename does not determine age. Copying, editing or restoring files can change timestamps. Verify them before trusting the policy.

Choose a policy

Start with the recovery period you need. Add a minimum number to retain, protect recent generations if needed, and cap how many deletions a job may attempt. Test with Preview now.
Take care. A live job permanently removes qualifying files. Never apply a simple age rule to a backup chain that needs older components.

Related guides

Include and exclude filenames · Minimum copies, deletion limits and pause · Grandfather-father-son retention · Independent backups and dependent chains

Search all guides