Skip to content

Latest commit

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Backrest

Home Assistant integration to monitor and control Backrest backup server instances. Provides real-time backup status, plan tracking, and maintenance operations.

hacs_badgeGitHub Release

Features

  • Real-time monitoring of backup plan status and health
  • Track last backup time, next scheduled backup, and backup duration
  • Monitor file count, snapshot count, and data size per plan/repo
  • Binary sensor for backup plan health state
  • Trigger backups and run maintenance tasks directly from Home Assistant
  • Configurable polling interval

Prerequisites

  • Home Assistant 2026.3.0 or newer
  • Running Backrest server with API access

Installation

HACS (Recommended)

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

Or add manually:

  1. Open HACS in your Home Assistant instance
  2. Click the three dots in the top right corner and select Custom repositories
  3. Enter https://github.com/thecodingdad/ha-backrest and select Integration as the category
  4. Click Add, then search for "Backrest" and download it
  5. Restart Home Assistant

Manual Installation

  1. Download the latest release from GitHub Releases
  2. Copy the custom_components/backrest folder to your Home Assistant config/custom_components/ directory
  3. Restart Home Assistant

Configuration

Setup

  1. Go to Settings -> Devices & Services
  2. Click Add Integration
  3. Search for "Backrest"
  4. Follow the setup wizard

Options

OptionTypeDefaultDescription
urlstringrequiredBackrest API endpoint URL
usernamestringoptionalAPI username
passwordstringoptionalAPI password
scan_intervalinteger60Polling interval in seconds (10-3600)

Entities

The integration creates the following entities for each backup plan and repository.

Sensors

SensorDescription
Last Backup StatusStatus of the most recent backup run
Last Backup TimeTimestamp of the last completed backup
Next Scheduled BackupTimestamp of the next planned backup run
Backup DurationDuration of the last backup operation
File CountNumber of files included in the backup
Snapshot CountNumber of snapshots stored
Data SizeTotal size of backup data
Operation IDIdentifier of the last backup operation
Display MessageHuman-readable status message
Hours Since Last BackupNumber of hours elapsed since the last successful backup

Binary Sensors

Binary SensorDescription
Backup Plan HealthIndicates whether the backup plan is healthy

Buttons

ButtonDescription
Trigger BackupManually start a backup for this plan
Run MaintenanceExecute maintenance tasks for this plan

Multilanguage Support

This integration supports English and German.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Home Assistant integration for Backrest backup server - monitor and control backups

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages