Backup to TrueNas?

Is anybody backing up their Config to a TrueNas server?

I am. Home Assistant Blue backing up to TrueNAS SCALE using an NFS share.

I’m trying but nothing is working. What settings did you use? I have the share setup on Scale and the IP of Truenas, the shared folder, user and password in Nextcloud Storage.

Here are screenshots of my TrueNAS and Home Assistant settings. Sorry, I know nothing about Nextcloud storage.

TrueNAS Dataset

When creating the dataset, I used the Generic preset
image

I did not have to edit any permissions, and I did not use any ACLs for this dataset

TrueNAS NFS Share

Home Assistant Storage

I meant Home Assistant,not Nextcloud. I was mssing with both at the same time.
Thanks for the pictures,I will try that later.

Thanks Troy,that worked like a Charm. Appreciate it.

1 Like

I’m on Windows,how are you accessing the file? or are you just downloading it from HA?

I run Linux with KDE Desktop environment. My file browser can connect to TrueNAS over ssh, which allows me to browse my entire Zpool without creating any shares. You could use something like WinSCP to do something similar but probably not the solution you’re looking for.

I believe because we’ve used the generic data set type you can also make a mixed share. In other words, create a samba share in addition to NFS.

After work today I can create a mixer and let you know if it worked. I’m not sure how to go about managing the permissions for something like this though. I’m sure a read-only share would be pretty straightforward, but if you want to delete backups from Windows, I don’t know if that would get tricky or not. I’ve never used ACLS and that seems to be the way people give permission these days.

Edit: I should add, I don’t have permission to delete backups over SSH but I can view and copy them. When I need to delete old backups I do it from in Home Assistant

That would be great. Let me know. I tried using Samba share, but no luck.

This worked for me. I tested from my work laptop (running Windows), and I could browse and delete backups. I also have a user account on TrueNAS with the same username and password as the Windows computer. I don’t think that’s required, but it allowed me to access the backup share from Windows without entering a user/password.

Here’s my basic setting

Then I clicked Advanced Options and UN-checked Enable ACL
image

All other settings I left at default.

1 Like

Excellent,I see the folder mounted in my network. Do I now just need to create another storage location in HA and use SMB instead of NFS?

Yeah, you can use the SMB share instead of NFS. I used NFS because I used to run HAOS in a VM on TrueNAS, and I felt that NFS was a better connection for that setup. Everything still worked when I switched to HA Blue, so I left it alone.

I am pretty sure more people use SMB, though. If you have trouble with Home Assistant writing backups to the SMB share, you may need to jump over to the TrueNAS forums for help with the permissions.

Again, I don’t use ACLs because basic permission are easier for me to manage. I understand them enough to do what I need, but I’m not expert enough to explain all the ins and outs

Tried creating new storage for the SMB,but get this error…

does not match regular expression [1]+ for dictionary value @ data[‘share’]. Got ‘/mnt/Main/HomeAssistant_Backups’ required key not provided @ data[‘usage’]. Got None


  1. ^\/ ↩︎

You need to use the share name - not the full path. So using my example, if I switch to SMB these would be my settings

image

Let me try that.

Tried that and now I get this…

Mounting Truenas_SMB_Backup did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-Truenas_SMB_Backup.mount for details.

Logs show this…

Failed to to call /mounts - does not match regular expression [1]+ for dictionary value @ data[‘share’]. Got ‘/mnt//Main/HomeAssistant_Backups’ required key not provided @ data[‘usage’]. Got None


  1. ^\/ ↩︎

Maybe double-check for typos. I can reproduce the same error using an incorrect server address, username, password, or share name.

I’m not sure what other hints I can provide without seeing the logs (logs may or may not have any useful information)

EDIT:

To me, that reads like you forgot to click Backup
image

I’ll double check.

I have checked the settings,but still getting the error. I’ll revisit this tomorrow and let you know.