home-assistant: Configure BURP backups

Take a snapshot of the history database first, then back up everything
in `/var/lib/homeassistant`.
This commit is contained in:
2021-12-17 20:57:38 -06:00
parent fdfdaa6fe6
commit 739ffb2845
3 changed files with 11 additions and 0 deletions

View File

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