home-assistant: Omit history DB from backups

The state history database is entirely too big.  It takes over an hour
to create a backup of it, which usually causes BURP to time out.  The
data it stores isn't particularly interesting anyway.  Instead of trying
to back it up and ultimately not getting any backup at all, we'll just
skip it altogether to ensure we have a consistent backup of everything
else that is actually important.
ntfy
Dustin 2022-01-02 12:07:12 -06:00
parent d8bb629c5d
commit 5efbee725e
2 changed files with 1 additions and 6 deletions

View File

@ -21,5 +21,4 @@ collectd_df:
burp_backup: burp_backup:
- include: /var/lib/homeassistant - include: /var/lib/homeassistant
- exclude: home-assistant_v2.db*
burp_backup_script_pre: /etc/burp/backup-pre.sh

View File

@ -1,4 +0,0 @@
#!/bin/sh
sqlite3 /var/lib/homeassistant/home-assistant_v2.db \
".backup '/var/lib/homeassistant/home-assistant_v2.db.bak'"