Home Assistant 2026.12.0b1 Stops Deleting Old Automatic Backups From Disabled Locations
Home Assistant beta 2026.12.0b1 fixes a bug that deleted old automatic backups from locations disabled for automatic backups. In one case, files disappeared from a NAS whose backups were managed by a separate server.
Backups that should have stayed on the NAS
Home Assistant, the open source smart home management software, released beta 2026.12.0b1 on November 26. It fixes an issue that let Home Assistant delete old automatic backups from disabled locations.
In a test report, a user said they had configured Home Assistant to keep the three most recent automatic backups on the host. A separate Linux server copied those backups to a UGREEN NAS, verified the files, and kept the five most recent copies.
The NAS was registered as a backup location in Home Assistant but disabled as a destination for automatic backups.
The user's monitoring dashboard showed that only three backups remained on the NAS, too. The user said they checked their management script and its logs and found that the script had not run when the old files disappeared.
The user created another automatic backup and watched both locations. When the oldest file was deleted from the Home Assistant host, the corresponding file disappeared from the NAS as well.
The user then changed the NAS from global retention settings to indefinite retention and repeated the test. Home Assistant deleted the old file from the host, and the NAS copy remained.
Home Assistant: NAS backup loss before the fix
| Comparison | Home Assistant host | NAS (external storage) |
|---|---|---|
| Automatic backup destination | Enabled | Disabled |
| How backups are stored | Created automatically | Copied by a separate server |
| Expected retention | 3 backups | 5 backups |
| Backups found | 3 backups | 3 backups |
| Old files when a new automatic backup is created | ||
| NAS: Global settings | Delete | Delete |
| NAS: Indefinite retention | Delete | Kept |
Automatic cleanup now respects which locations are enabled
Home Assistant's automatic backup feature uses retention settings to remove old automatic backups. Users can set how many backups to keep or how many days to keep them.
The old cleanup logic did not check whether a location was enabled for automatic backups. Even after users stopped automatic backups to a NAS, the retention settings still applied to automatic backups already stored there.
The developers confirmed the reported behavior and merged a fix into the development branch.
The new logic checks create_backup.agent_ids, the setting that lists locations enabled for automatic backups. It excludes disabled locations before choosing which old backups to delete.
The change applies to both retention by count and retention by age. It covers locations that inherit the global settings and those with their own settings. The developers added tests for disabled locations under both configurations.
Home Assistant 2026.12.0b1 (beta): Automatic deletion by backup count or age
| Destination status and retention | Before the fix | After the b1 fix |
|---|---|---|
| Enabled with global settings | Apply retention settings | Apply retention settings |
| Enabled with custom settings | Apply retention settings | Apply retention settings |
| Disabled with global settings | Apply retention settings | Automatic deletion paused |
| Disabled with custom settings | Apply retention settings | Automatic deletion paused |
Disabling a location also pauses retention management
A change to the settings interface was also merged. If a location with custom retention settings is disabled, the list now indicates that retention management is paused. The detail page for a disabled location explains that existing backups will be kept.
Frontend version 20261125.1 includes this change and shipped with beta 2026.12.0b2.
Re-enabling a location for automatic backups also re-enables its retention settings. The fix affects automatic deletion under those settings. Users can still delete backups manually.
The fix also affects setups that relied on the old behavior. If Home Assistant used to clean up old backups after the location was disabled, retention-based deletion will stop. Manage backup counts or free space separately where needed.
If an earlier version of Home Assistant is still backing up to a NAS, compare the retention settings with the files actually stored there.
Separate storage locations can still share the same retention behavior when one application has permission to delete from both. The user found the problem because they monitored how many backups the NAS actually held.
KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.
