Why backups disappear while the dashboard stays green: lifecycle rules and restore tests
A backup job usually reports whether tonight's run worked: files were read, the upload finished, no error came back. It does not report whether the older data that tonight's backup depends on still exists. A lifecycle rule meant for temporary files, a retention setting, a cleanup script or a changed credential can remove or block that data without any error in the backup tool, so the dashboard stays green while the set you would restore from is incomplete. The protection is to keep backups where such rules cannot reach them, to use versioning and Object Lock where the storage offers them, to alert on missing data, and to read data back and validate it on a schedule, with a full restore drill now and then.
Why is "backup succeeded" not the same as "restorable"?
Three different statements hide behind a green status. They are easy to mix up, because a backup tool reports the first one most naturally:
| Statement | What it says | What can still be wrong |
|---|---|---|
| The upload succeeded | Tonight's data reached the storage and the storage acknowledged it. | Everything that tonight's backup refers to and that was uploaded earlier. |
| A complete restore set exists | Every object needed for the restore point, new and old, is present: the base, the increments or the shared chunks, the index, the keys. | The objects may be present but damaged, truncated or unreadable with the current credentials. |
| The data reads back and is valid | The objects were read through the restore path, their checksums match, and what comes out opens as the file, mailbox or database it should be. | Only what was read is proven: a sample proves the sample. Time, access and procedure of a real restore are still untested. |
Only the third statement is a statement about restorability. The first does not imply the second: many backup methods, from classic incremental chains to deduplicating tools, write a small amount of new data each night and refer to older data for the rest. A new restore point therefore rests on objects that may be weeks or months old. See full, incremental and differential backups for how long that chain can get. The BSI says the same in plain words in its Datensicherungskonzept building block (CON.3): regular backups do not automatically guarantee that the data can be restored, and without regular tests it may turn out that it cannot. Requirement CON.3.A15 asks for regular tests of whether backed-up data can be restored flawlessly and in reasonable time.
An example with assumed numbers
Suppose a team backs up to an object storage bucket every night. A full backup was uploaded on day 1, and an incremental backup follows each night. The same bucket also holds temporary exports, and someone added a lifecycle rule to the whole bucket: expire objects 7 days after creation.
| Night | What the job reports | What is in the bucket |
|---|---|---|
| Day 1 | Success: full backup uploaded. | The full backup. |
| Days 2 to 7 | Success: an increment each night. | The full backup and 6 increments. |
| Day 8 and after | Success every night. The tool only checks its own upload. | The full backup is gone, and each night the oldest increment goes. Only the last 7 nights remain. |
| Day 90, the outage | The last run was green. | Seven increments without their base. The restore stops with an incomplete archive. |
Nothing in this table is an error on the backup side. Each run did what it was asked to do. The fault is the difference between what the tool measures and what you need.
How do lifecycle rules, retention settings, cleanup scripts and credentials break backups silently?
The common thread is that something other than the backup run changes the stored data, and nobody reads the result back.
| Cause | Why the job stays green | What shows it |
|---|---|---|
| A lifecycle rule that matches backup objects | The storage deletes on its own schedule. The tool writes new objects and never asks about old ones. | The age of the oldest object in the backup location, its total size, a restore check. |
| A retention setting that is shorter than you think, or a second tool that prunes the same location | Pruning is a normal, successful action. A count of the last N restore points or an age limit that does not match the promise deletes what you meant to keep. | The number and age of restore points compared with what you promised; a review when either tool's settings change. |
| A quota or cleanup script (delete the oldest when the disk is 90 percent full, delete files older than N days) | It acts on files, not on backups, and does not know that a base file is still in use. | Alerts on missing data and a check that every object the catalog lists still exists. |
| Credential rotation or a changed permission | A key that may write but not list or read lets uploads succeed while a restore fails. A key that has expired usually fails loudly, but a tool that retries quietly can hide it for days. | A scheduled read-back with the same credentials a restore would use. |
| A migration to a new bucket or provider | The new location receives new backups. The history was copied incompletely or not at all. | A read-back of the oldest restore point after the move. |
What AWS says about lifecycle rules
The details matter, because they explain why a rule can be dangerous for a long time before anyone notices. The Amazon S3 documentation on expiring objects states:
- A new rule applies to existing objects as well as to objects added later. A rule with a 30-day expiration on a prefix queues every existing object of that prefix older than 30 days for removal the moment it is added.
- In a bucket without versioning, expired objects are removed asynchronously and permanently. There can be a delay between the expiration date and the removal, so the first missing object may appear some time after the rule started to match.
- You cannot use a bucket policy to stop a lifecycle rule. Even a policy that denies all actions to all principals does not prevent it. Control of who may change the lifecycle configuration is the control that counts.
- A rule can expire noncurrent versions permanently, and AWS states that these deleted objects cannot be recovered.
- Before updating, disabling or deleting rules, AWS advises using the LIST operations or S3 Inventory to verify what has been transitioned and expired.
Other S3-compatible providers have their own lifecycle features with their own limits. Treat the AWS text as the reference for how such a rule can work, and read your provider's documentation for what it does.
What protects backups from silent deletion?
No single measure covers every cause. The ones below fit together, and each answers one of the causes above.
- Keep backups apart from temporary data. Use a separate bucket, or at least a prefix that no rule matches, and give the backup tool credentials that cannot change bucket settings. A rule meant for temporary files cannot match what is not in the same bucket. This is the cheapest control and it removes the cause rather than detecting it. See choosing backup storage.
- Review every lifecycle rule and who may change it. List the rules, check their prefix and tag filters, and write down why each exists. Look at them again whenever a rule is added, as AWS suggests before a change, with a listing of the objects it would touch. Make a rule change something that cannot happen without a second pair of eyes.
- Turn on versioning, and Object Lock where the storage supports it. With versioning, an expiration rule adds a delete marker and keeps the version underneath, and AWS takes no action on noncurrent versions that carry an Object Lock configuration. Object Lock refuses a permanent delete of a locked version until its date. Both have costs: every version takes storage, delete markers hide objects from tools that do not expect them, and a lock set too short expires before you notice. Governance and compliance mode, and what Object Lock does not cover, are on the page about immutable backups and in the glossary entry Object Lock.
- Alert on missing data, independently of the backup tool. Watch the backup location itself: the age of the oldest object, the total size, the object count and the time since the newest object. A falling size or a younger oldest object than your retention promises is a signal that something deleted data. Also alert when a backup run does not happen at all, because a job that silently stops looks the same as a green one.
- Read data back and validate it on a schedule. An automated restore check reads objects through the same path a restore uses and validates them: existence of every object the catalog refers to, matching checksums, and for a sample the actual content (an archive that extracts, a database dump that loads, a mailbox item that opens). It should use the credentials a restore would use, and it should fail loudly and alert. The method is described in how to prove that a backup can be restored, and the reasons in why restore tests matter. See also restore test in the glossary.
- Run a full restore drill now and then. A sample check cannot tell how long a complete restore takes, whether the keys and passwords are where you think they are, or whether the steps are written down. A drill into a clean target answers that. The BSI's CON.3.A15 asks for exactly this kind of test: whether data can be restored flawlessly and in reasonable time. Schedule it, and after any larger change to storage or backup tool.
- Keep a second copy elsewhere. A rule or a script in one bucket or one account cannot touch a copy at another provider under another login. See the 3-2-1 rule.
A short checklist
- Backups and temporary data are in different buckets, or in prefixes that no lifecycle rule matches.
- Every lifecycle rule of the backup location is listed, filtered by prefix or tag, and has a documented reason.
- Only a few people may change lifecycle rules, and a change is reviewed.
- Versioning is on; Object Lock is on where the storage supports it; noncurrent-version expiry rules are reviewed.
- The retention setting of the backup tool matches the longest restore you promise, and no other tool or script prunes the location.
- After every credential rotation, writing, listing and reading are tested with the new credentials.
- An alert watches the oldest object, the total size and the time of the newest object of the backup location.
- An automated check reads data back and validates it on a schedule, and its failure or absence raises an alert.
- A full restore into a clean target is done at a fixed interval, with the time it took and the steps written down.
- A second copy exists at another provider or site.
How Restow handles this
Restow is a beta. This is what the released product does about the gap between a finished backup and a restorable set, and where it stops. It was written for a bucket that you control and that holds only backups.
It does not call a backup proven until it has been read back
The Recovery readiness view rates every protected object as "Ready", "Attention", "Not restorable" or "Unverified". A restore check reads random mails, files, calendar items and contacts from the newest backup through the restore path and compares them byte by byte with their recorded checksums. A backup that no check has read back yet is shown as "Unverified", not as "Ready", even when it came after a successful check. Mailboxes, OneDrives and SharePoint sites are checked weekly with a sample. Servers, clients and file shares are checked after every new backup, with up to 20 sampled files, and the repository gets a weekly check; see automated restore verification and how Restow proves your backups can be restored.
What happens when stored data is missing
A separate "Storage integrity" check reads stored pack files from the primary repository and from every copy and compares their size and SHA-256 with what the database recorded. A sample runs weekly and every pack monthly, and an administrator can start a sample or a full check by hand. When a pack has no intact copy on any target, the objects that use it are rated "Not restorable" at once, and an alert "Storage damage found" is raised. A pack that is damaged on the primary but intact on a copy is repaired from the copy ("Storage damage repaired"). A pack that could not be read for the moment, for instance because of a permission error, is first called "temporarily unreadable" and rates the backup "Attention"; only three checks in a row over at least 24 hours turn that into "Not restorable". The alerts "Backup failed", "Backup overdue" and "Restore check failed" exist as well, so a run that stops or a check that fails does not go unnoticed. A full backup of an affected object writes its content again from the source, as far as the source still holds it; restore points that are gone are not recreated.
Immutability, when you turn it on
Immutability is off until an administrator turns it on for a repository ("Change immutability"). On an S3 bucket created with Object Lock, Restow can then lock backup data in compliance or governance mode for 1 to 3650 days and renews the lock while the data is in use. The restore point list shows "Immutable until" with a date. A directory or an NFS share only gets a deletion delay, which Restow enforces itself and which is not immutability. Restow's own retention treats a locked object as "not yet" and does not fail. The immutable backups were tested against a simulated S3 service with Object Lock, and the release notes so far do not report a test against a real one. The details are on the page about immutable backups.
What it does not cover
- It does not read or warn about lifecycle rules. Restow does not look at the lifecycle configuration of your bucket. A rule that deletes backup objects is found only when a check reads the missing data.
- The checks are samples. The weekly storage check reads a sample of the packs, so a deleted pack can stay unnoticed until the monthly full pass, or until a restore check happens to need it. The restore check proves what it read, not every item.
- It does not restore into a target for you. The check does not restore into a mailbox, OneDrive or IMAP account. A full test restore into a separate target for everything is planned, not built, so the full restore drill stays your task.
- Retention and the lock period are yours to choose. If a retention policy is set shorter than the history you need, Restow deletes accordingly and reports it as normal.
- Alerts need a destination. An alert that nobody receives protects nothing; set the alert channels up and test them.
See storage for repositories, copies and immutability, and verification for the checks.
Not sure where you stand? Take the two-minute backup check.
Frequently asked questions
Why did my backup job report success when the data was gone?
Because most jobs report on the run they just made: the files were read, the upload finished, no error came back. They do not check that every older object the new backup depends on still exists. If a lifecycle rule, a cleanup script or a retention setting removed that older data, tonight's run can still be green while the set you would restore from is incomplete.
Can an S3 lifecycle rule delete backups that are under Object Lock?
AWS says that S3 takes no action on noncurrent versions of objects that have the Object Lock configuration applied, and a permanent delete of a locked version is refused. In a versioned bucket an expiration rule only adds a delete marker on top of the current version, which hides the object but leaves the locked version underneath. Your backup tool then no longer sees the object, so the data has to be brought back by hand. Other S3-compatible services may differ, so read their documentation and test it on a copy.
Does turning on versioning protect me from a lifecycle rule?
Partly. With versioning, an expiration rule adds a delete marker instead of removing the object. But a rule that expires noncurrent versions deletes them permanently, and AWS states that these deleted objects cannot be recovered. Versioning also costs storage for every version. It lowers the risk of a mistake only if you also review the noncurrent-version rules.
How often should a restore test run?
There is no universal figure. The BSI requires regular tests without naming an interval. A workable rule is to run the automated check often enough that missing data shows up well before the oldest restore point you promise would be affected, and to schedule a full restore drill at a fixed interval, for instance once a year and after every larger change to the storage or the backup tool.
Is a green backup dashboard evidence that I can restore?
Only if the dashboard measures restorability. A status that counts finished uploads proves that uploads finished. Look for a status that comes from reading data back and validating it, and treat a backup that has never been read back as unproven.
Does Restow warn me about lifecycle rules on my bucket?
No. Restow does not read the lifecycle configuration of a bucket and does not warn about it, so keep backups in a bucket with no expiring rule. What it does is read stored data back: a weekly storage check compares a sample of the stored packs with the recorded size and checksum, a full pass covers every pack monthly, and a restore check reads back a sample of each newest backup. Data that is missing on every target rates the affected backups "Not restorable" and raises an alert. These are samples, so a missing pack can stay unnoticed until the next full pass.
Sources
Read on 11 November 2026.
- Amazon S3 User Guide: Expiring objects. What an expiration action does in unversioned, versioning-enabled and suspended buckets, noncurrent versions, Object Lock, existing objects, bucket policies cannot stop a rule, verifying with LIST or S3 Inventory
- Amazon S3 User Guide: Locking objects with Object Lock. Versioning required, protection per object version, delete markers, how permanent and simple deletes are answered
- Amazon S3 User Guide: Retaining multiple versions of objects with S3 Versioning. Versions, delete markers, restoring earlier versions, versioning with lifecycle rules
- BSI: IT-Grundschutz-Kompendium, CON.3 Datensicherungskonzept (Edition 2023). Section 2.2 on missing restore tests, requirement CON.3.A15 (regular tests) and CON.3.A14 (protection of backups from being overwritten), in German