The ability to have HA OS mount network shares is a fantastic new feature of 2023.6. For some of us, it’s been long awaited.
So far all we have is the documentation here, and some posts in the release thread.
I’m starting this thread as a place to post experiences, good and bad, with this new functionality, as well as any questions left lingering after reading the documentation.
Tell us how you’ve used it, how it’s worked for you, what you’ve discovered, anything you’ve struggled with and anything you’re wondering about it. Let’s all learn hot to use this together!
Works fine, but the backup configuration can be a bit confusing and it’s very barebones.
A SMB share starts with the sharename followed by the path with no leading slash. So it would look something like ShareName/Backups/HomeAssistant.
This is somewhat nonstandard and I’d prefer a URL like smb://NasHost/ShareName/Backups/HomeAssistant, but not a big deal.
Where the UI really falls apart is where you tell HASS to put backups in the new share. You need to go to backups and then click the three dots in the top right. That… isn’t very discoverable UI.
Then finally, it’s extremely barebones. The backup files themselves are seemingly randomly named (mine was bb70c72b.tar for example), they aren’t compressed (would like them gzipped), and there’s no way to configure retention, so it’ll save the files forever. Of course this is just the initial implementation, I’m sure this will all be addressed at some point.
Doesn’t work for me mounting my Buffalo Linkstation (Samba version 2):
Jun 08 14:49:13 homeassistant kernel: CIFS: Attempting to mount \\192.168.1.25\media
Jun 08 14:49:13 homeassistant mount[2733910]: mount error(22): Invalid argument
Jun 08 14:49:13 homeassistant mount[2733910]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
Jun 08 14:49:13 homeassistant kernel: CIFS: VFS: cifs_mount failed w/return code = -22
Jun 08 14:49:13 homeassistant systemd[1]: mnt-data-supervisor-mounts-NAS.mount: Mount process exited, code=exited, status=32/n/a
Jun 08 14:49:13 homeassistant systemd[1]: mnt-data-supervisor-mounts-NAS.mount: Failed with result 'exit-code'.
Jun 08 14:49:13 homeassistant systemd[1]: Failed to mount Supervisor cifs mount: NAS.
Maybe it uses Samba version 3? my NAS has no NFS support.
Good for a first effort, however specifying username and password for the share needs also to have ability to add a domain to the mix. I use Domain Active Directory in my network and the NAS uses it to authenticate the username/password.
So far, I have tried the backup feature to a mapped drive on my Windows server, and it is working great.
I am curious if I could use another shared mount to use in my YAML configurations, specifically, I want to be able to save DeepStack files to my server (see save_file_folder below).
Here’s my first question: Does the backup really get created on the share that you’ve mounted as backup? Or is it created on the local storage then copied there, like all the backup add-ons do?
There is a Feature Request for the ability to give the backups (formerly called snapshots) a meaningful name. It’s sort of languished for a few years, but I think this new Network Storage feature might give it more justification. Please vote if you agree.
Also, isn’t .tar a compressed format? I guess I always just assumed that, so I could be wrong.
Good question. This has been talked about a lot in the 2023.6 release thread and elsewhere.
As I (a plain ol’ HA OS user) understand it, the thought was that it’s not really needed in other OS configurations. If you’re already managing the OS and just running HA in a container or VM then you already have full control over what drives are mounted. I imagine you could run all of HA off a share from a remote server if you wanted.
What I suspect may be missing is the ability to run HA from a local drive, but create the backups on a (presumably already mounted) share. Or maybe you can and I’m just missing the details. So far the documentation has been fairly limited.
OK, I was able to successfully mount a share from my NAS as “backup.”
HA is still showing the local backups, and creating new ones on the local HA storage device. I restarted HA as well as rebooted the whole system (HAOS on a RPi.) No change.