Backups don't seem to backup all of config

I noticed Common tasks - installation independent - Home Assistant mentions that the config directory is backed up … this doesn’t seem to be the case.

For example I have /config/openhasp/ directory (to support openhasp) and this isn’t included in the backup.

To test the backup I -

  • Trigged an automated backup
  • Downloaded the tar file
  • Used borgify-ha-backup.py to decrypt to x.tar
  • tar -xvf x.tar
  • tar -xvf homeassistant.tar

The extracted data directory contained only some files for the original config directory.

I suggest changing the category to Feature Requests - Home Assistant Community and adjusting the text to fit a request to make this happen.
I was under the impression that subfolders were pulled into the backup. If what you say is true, so I would vote for this if you made your changes. @plord

Huh.

I’ve just updated to todays release, turned off encryption (hard to validate backups with encryption turned on) and now it seems to be working.

$ tar -tvzf homeassistant.tar.gz | grep openhasp
drwxr-xr-x  0 root   root         0 17 Feb 22:06 data/openhasp/
-rw-r--r--  0 root   root     18001 21 Feb 16:35 data/openhasp/pages.jsonl

I don’t know if this was fixed or if encryption triggers the issue.

I noticed some bug reports about the files excluded from backups (core/homeassistant/components/backup/const.py at 3160b7baa0545b04cda68ee77ebe91b50c6ca0b0 · home-assistant/core · GitHub) but that doesn’t seem to be the cause here.