https://github.com/jcwillox/hass-auto-backup
🗃️ Improved Backup Service for Home Assistant that can Automatically Remove Backups and Supports Generational Backup Schemes.
https://github.com/jcwillox/hass-auto-backup
auto-purge backups generational-backups hassio homeassistant snapshots
Last synced: 3 months ago
JSON representation
🗃️ Improved Backup Service for Home Assistant that can Automatically Remove Backups and Supports Generational Backup Schemes.
- Host: GitHub
- URL: https://github.com/jcwillox/hass-auto-backup
- Owner: jcwillox
- License: mit
- Created: 2019-11-15T06:03:46.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-02-08T14:53:36.000Z (over 1 year ago)
- Last Synced: 2025-04-08T08:11:17.402Z (over 1 year ago)
- Topics: auto-purge, backups, generational-backups, hassio, homeassistant, snapshots
- Language: Python
- Homepage: https://jcwillox.github.io/hass-auto-backup
- Size: 1.11 MB
- Stars: 428
- Watchers: 6
- Forks: 27
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-home-assistant - Auto Backup - Automate backups with custom schedules, retention rules, encryption, and uploads to remote storage (459★). (Custom Integrations / 🛠️ Automation tooling)
README
# 🗃️ Auto Backup
[](https://github.com/hacs/integration)
[](https://github.com/jcwillox/hass-auto-backup/blob/main/LICENSE)
[](https://github.com/jcwillox/hass-auto-backup/releases)
[](https://github.com/jcwillox/hass-auto-backup/releases)
[](https://github.com/psf/black)
[](https://my.home-assistant.io/redirect/hacs_repository/?owner=jcwillox&repository=hass-auto-backup&category=integration)
[](https://my.home-assistant.io/redirect/config_flow_start/?domain=auto_backup)
Auto Backup is an Improved Backup Service for Home Assistant that can Automatically Remove Backups and Supports Generational Backup Schemes.
> While Home Assistant does provide built-in services for creating backups, they do not provide the ability to exclude items from a backup, or a way to automatically remove them, this custom component aims to fix that.
For more information and examples check the [documentation](https://jcwillox.github.io/hass-auto-backup).
## Features
- Provides more advanced and configurable [service calls](https://jcwillox.github.io/hass-auto-backup/services).
- [Exclude addons/folders](https://jcwillox.github.io/hass-auto-backup/services) from a backup.
- [Automatically delete backups](https://jcwillox.github.io/hass-auto-backup/services/#keep-days) after an individually specified amount of time.
- Backup to [custom locations](https://jcwillox.github.io/hass-auto-backup/services/#custom-locations) such as network storage.
- [Download backups](https://jcwillox.github.io/hass-auto-backup/services/#download-path) to a specified directory after completion (for example a usb drive).
- Allows the use of [addon names instead of slugs](https://jcwillox.github.io/hass-auto-backup/services/#addon-and-folder-names).
- Provides a [sensor](https://jcwillox.github.io/hass-auto-backup/sensors) to monitor the status of your backups.
- Creates [events](https://jcwillox.github.io/hass-auto-backup/events) for when backups are started/created/failed/deleted.
- Supports [generational backup](https://jcwillox.github.io/hass-auto-backup/advanced-examples/#generational-backups) schemes.
## Services
[Automation Examples using Services](https://jcwillox.github.io/hass-auto-backup/examples)
- [`auto_backup.backup`](https://jcwillox.github.io/hass-auto-backup/services/#auto_backupbackup)
- [`auto_backup.backup_full`](https://jcwillox.github.io/hass-auto-backup/services/#auto_backupbackup_full)
- [`auto_backup.backup_partial`](https://jcwillox.github.io/hass-auto-backup/services/#auto_backupbackup_partial)
- [`auto_backup.purge`](https://jcwillox.github.io/hass-auto-backup/services/#auto_backupbackup_purge)
## Events
[Automation Example using Events](https://jcwillox.github.io/hass-auto-backup/events/#example-automation-using-events)
- [`auto_backup.backup_start`](https://jcwillox.github.io/hass-auto-backup/events)
- [`auto_backup.backup_successful`](https://jcwillox.github.io/hass-auto-backup/events)
- [`auto_backup.backup_failed`](https://jcwillox.github.io/hass-auto-backup/events)
- [`auto_backup.purged_backups`](https://jcwillox.github.io/hass-auto-backup/events)
## Configuration
After installing Auto Backup via [HACS](https://hacs.xyz/), it can then be setup via the UI, by going to **Configuration** → **Devices & Services** → **Add Integration** → **Auto Backup** or by clicking the button below.
[](https://my.home-assistant.io/redirect/config_flow_start/?domain=auto_backup)
### Options
- **Automatically delete expired backups**
- This option will automatically purge any expired backups when creating a new backup.
- **Backup Timeout**
- You can increase this value if you get timeout errors when creating a backup. This can happen with very large backups. Increasing this might make Auto Backup less reliable at monitoring backups to delete.
## Images