Well… I hope someone can answer this as it appears the author may not be responding… Has anyone had any success with adding a second backup to a second remote system. I have not been able to convince it to even try the second system.
Exactly that’s the main pain point here. Not a single response for months.
I fear to say… everyone running in an issue sooner or later been left with a somehow not well-working backup solution should have a look at the new native network mount support and see if HA already can provide the same set of features out of the box like
create backup locally
copy backup to network share
set file name of local/remote backups
version control: keep X local and Y remote backups
It’s just damn annoying being left with a malfunctioning piece of software - an important one cause backups can save asses.
Last hope to finally get dev response and hopefully fix the issue in this basically really great addon is getting down to zero meanwhile unfortunately. My summary based on the last 3 months:
I have just started using this Add-On but I don’t think anything is broken.
I was having the exact problem detailed above, logs give warnings about not being able to rename the file, the file is created anyway (with a random name rather than the name specified in the config) says it failed in HA.
Try setting your backup location in
Settings → System → Backups → Burger/3dot menu → change default backup location
Set it to “Use data disk for backup”
Set your “Keep Internal backups” in the add-on config to 0 (if you want)
It looks like the issue with your backup is that the SambaAddon cannot rename the copied file.
But the copy itself went fine…
Check access rights on the share?
It is so unfortunate that it is not supported. I have been using this one from around the original release. What I find to be the real bummer? I also run Unraid and when a module author goes missing, more often than not another dev picks it up and maintains or improves the package. It seems that there are less people with knowledge in the HA community (smaller community) and therefore a few have more work to do to advance the product and maintain status quo. I wish I had the skill set to maintain a plugin and help with this kind of stuff, but I really do not have coding skills and at 58 am just not interested in trying to learn more than I know at this point which is basic perl and shell scripting.
This is not a slam against devs in the HA community, unfortunately just a fact of life.
Worth giving it a try, but:
there are no options next to “Use data disk for backup” and therefore can’t be saved
No I don’t want - and I absolutely don’t see how that setting could fix something. It’s more likely due to the restart of the addon something magically fixed itself in your case. Lucky you.
Used SAMBA share user has full access rights. The files on the target are correctly renamed. E. g. Samba_Backup_Partial_Backup_2022_12_9_2023_07_18_02_00.
No progress here
I set addon log level to debug for now, hoping the get any more details.
The main question is WHY THE HELL the Samba backup sensor status switches to FAILED only because one WARNING (bogus file rename log entry) is logged but the whole process is completely fine.
Anyone seeing anything suspicious in here? I don’t think so, but who knows.
WARNING: f439c76c.tar does not exist
WARNING: Could not copy backup f439c76c to share. Trying again …
WARNING: f439c76c.tar does not exist
The solution is effectively to change:
Settings → System → Backups → Burger/3dot menu → change default backup location and Set it to “Use data disk for backup”
If you don’t want to keep local backup in HA, then set your “Keep Internal backups” in the Samba Backup add-on config to 0.
The thing is, the default backup location for System Backup in my case was set to my Samba shared folder. So it’s normal for the error to occur since backups are done on the local disk and the default System Backup location was set to my Samba shared folder. Backup tried to find the backup file in the Samba shared folder but the file exists locally. Changing System Backup’s default location from my Samba shared folder to “Use data disk for backup” solved the problem.
Hi. Several bug reports have been raised reporting that the Samba Backup addon is broken when you use the new native HA NAS function.
I looked a bit. Thomas has not posted anything on this forum since March and not contributed anything on Github since April.
Something must have happened to him. Death. Jail. Marriage. Marriage and baby?
Looking at the addon - it seems a bit redundant. It is an Addon because it added samba client to the OS. That is not needed anymore. The rest is implemented as Bash scripts.
I think we are better off making an equivalent without the Addon using just built-in Home Assistant features.
We can easily schedule backups using automations and calling the service.
But we need implement cleaning up and deleting old backups so it does not pile up. Anyone already implented something like this?