Home Assistant add-on that automatically commits your configuration files to a Git repository with SSH key generation, real-time file watching, and a web UI for setup.
- Auto SSH Key Generation - No manual key management, just copy the public key from the Web UI
- Real-time File Watching - Optional inotify-based instant commits on file changes
- Scheduled Backups - Configurable interval from 1-168 hours
- Smart Exclusions - Databases, logs, and cache files excluded by default
- Web UI - View status, copy SSH key, trigger manual backups
- Multi-arch - Supports armhf, armv7, aarch64, amd64, i386
- In Home Assistant, go to Settings → Add-ons → Add-on Store
- Click ⋮ (menu) → Repositories
- Add this repository URL:
https://github.com/sttts/ha-git-backup - Find "Git Config Backup" and click Install
- Start the add-on
- Open the Web UI (from the add-on page)
- Copy the SSH public key displayed
- Add the key to your Git provider:
- GitHub: Settings → SSH and GPG keys → New SSH key
- GitLab: Preferences → SSH Keys → Add new key
- Create a private repository for your backups
- Configure the add-on with your repository URL:
git@github.com:YOUR_USERNAME/ha-config-backup.git - Restart the add-on
| Option | Default | Description |
|---|---|---|
repository_url |
(required) | Git repository URL (SSH or HTTPS) |
branch |
main |
Git branch |
backup_interval_hours |
24 |
Hours between backups (0 to disable) |
backup_on_start |
true |
Backup when add-on starts |
watch_realtime |
false |
Commit on file changes (inotify) |
watch_min_interval |
30 |
Minimum seconds between realtime commits |
watch_max_interval |
1800 |
Max backoff interval (loop protection) |
watch_burst_limit |
5 |
Allow this many rapid backups before backoff |
auto_generate_ssh_key |
true |
Auto-generate SSH key pair |
commit_message |
Backup: {files} |
Template with {date} and {files} placeholders |
See full documentation for all options including authentication, exclude patterns, and examples.
Included: YAML configs, JSON, scripts, blueprints, custom_components, themes, www
Excluded: Databases (*.db), logs, TTS cache, backups folder, .cloud
Apache License 2.0