---
title: "Never without a backup: a backup in three places and an alarm if it stops"
description: "An automatic Home Assistant backup in three different places and a notification if the last successful copy is too old. A copy you have not checked is not a copy."
canonical: "https://realhomeautomations.com/en/projects/backup-in-three-places-with-alarm/"
language: en-US
updated: 2026-11-25T15:20:27+00:00
---

# Never without a backup: a backup in three places and an alarm if it stops

An automatic Home Assistant backup in three different places and a notification if the last successful copy is too old. A copy you have not checked is not a copy.

> Canonical HTML page: https://realhomeautomations.com/en/projects/backup-in-three-places-with-alarm/

- **Difficulty:** Intermediate
- **Build time:** 45–90 minutes
- **Reading time:** 3 minutes

## Tools required

- Home Assistant (with access to Settings → System → Backups)
- Second place for copies (network storage (NAS) or another computer)
- Third place outside the home (cloud storage or Home Assistant Cloud)
- Phone with the Home Assistant app (for the notification)


## What readers will learn

- To run an automatic backup on a schedule and choose how many copies to keep
- To keep copies in three different places
- To get a notification if there is no successful backup
- To keep the encryption key separate from the copies


## Skill requirements

- To configure Backups in Home Assistant
- To create an automation with a template

A disk fails, an SD card wears out, an update breaks something. If you have only one copy and it is on the same device, in a failure you lose it too. A rule that holds for Home Assistant as well: three copies, in at least two different places, one of them outside the home.

 ## What you will learn

 How to set up an automatic backup, where the copies should go and how to get a notification if the backup has stopped being made.

 ## What you need

- Home Assistant with **Settings → System → Backups**.
- **Place 1:** the device itself (a local copy).
- **Place 2:** network storage (NAS) or another computer in the home. It is set up as network storage in Backups.
- **Place 3:** outside the home, for example cloud storage or the Home Assistant Cloud service.
- A phone with the Home Assistant app for the notification.

 Setup time: 45–90 minutes. Turn on encryption from the very start.

 ## How it works

 The automatic backup runs on a schedule and at each run writes a copy to all the chosen places. Old copies are deleted according to the set number to keep. The alarm automation doesn't make a backup: it checks when the last successful one was and raises an alarm if it was too long ago.

 Simeon makes a full backup every day to two places and keeps 14 daily, 8 weekly, 12 monthly and 2 yearly copies. His second installation makes an automatic daily backup and keeps 14 copies plus 3 local ones.

 ## Steps

- **Settings → System → Backups → Automatic backups.** Turn them on, choose the days and time (for example at night), and how many copies to keep.
- Choose the places to write to. Turn on the local one, the network storage and the third place outside the home.
- Leave encryption on. **Write the encryption key on paper or in a password manager and keep it in a place different from the copies.** Without it a copy can't be restored.
- Run a manual backup once and check that it appears in all three places.
- Make an alarm automation. The entity ID is **an example**; in Developer tools → States look for the Backup integration's sensors for the last successful backup:

 ```
alias: Backup has not been made
mode: single
triggers:
  - trigger: time
    at: "09:00:00"
conditions:
  - condition: template
    value_template: >
      {{ states('sensor.backup_last_successful_automatic_backup') in ['unknown', 'unavailable']
         or (now() - states('sensor.backup_last_successful_automatic_backup') | as_datetime)
            > timedelta(days=2) }}
actions:
  - action: notify.mobile_app_your_phone
    data:
      title: Home Assistant
      message: There has been no successful automatic backup for more than 2 days.
```

 You expect the automation to save without an error. If the sensor in your version is named differently, replace it. If it doesn't exist, use another check.

 ## Checking the result

- Check in all three places that there is a fresh copy after the first night.
- Temporarily change the condition to 0 days and send a test notification.
- At least once restore a copy on a second installation or a test computer. Only that way do you know the copy works.

 ## If it doesn't work

- The network storage isn't written to → wrong permissions or address → check the connection from Backups.
- The notification comes every day → the sensor returns another format → check it in Developer tools → Template.
- The copies are huge → the database is heavy → see the project about the Home Assistant database.

 ## Limitations

- The alarm works while Home Assistant works. If it stops completely, there is nobody to write to you. Look at an external check too.
- The copies keep the Home Assistant settings. The data of individual devices (for example pairing in a hub) may require a separate copy.
- Encrypted copies are useless without the key.

 ## Sources and verification status

 Checked against the documentation on 22.11.2026.

- [Home Assistant: Backups](https://www.home-assistant.io/common-tasks/general/#backups)
- [Home Assistant: Backup integration](https://www.home-assistant.io/integrations/backup/)