Great add-on! I was hesitant to install any and tried to go it alone with Automations but this is really well done.
For anyone else using a Synology who may have gotten error messages, the ‘Share’ was the folder name I created for this program - in my case ‘Pi4b’. It was NOT my Synology’s name nor ‘Workgroup’ which showed up in the File Service Samba settings. Also, not sure if it mattered but, by default, the Synology only has SMB1 as low and SMB2 as high and I changed latter to SMB3.
@thomasmauerer, Hi Im running a Hassio 2021.1.4 on a docker in a Ubuntu 18.04. I installed your add-on 'samba backup' like a 3 weeks ago, saving the files locally and also in my NAS. The add-on worked fine for 10 days and then stop. now when I tryto start the add-on I get an error:
'[22:45:38] WARNING: Server requested LANMAN password (share-level security) but 'client lanman auth = no' or 'client ntlmv2 auth = yes'
tree connect failed: NT_STATUS_ACCESS_DENIED
[22:45:38] FATAL: Cannot access share. Access denied. Please check your share permissions. '
any Idea,
Thanks
As requested by multiple users, the latest version now renames the snapshots on the share and does no longer use the slugs for the filenames. The prefix (“Samba_Backup”) is technically necessary because I need a regex search pattern for the cleanup.
In addition to that the add-on does no longer rely on ICMP requests. It turned out that smbclient already includes a reachability check.
My NAS is an old DNS-323, and only works with smb1, but had been work for 2 weeks and then stoped.
What I noticed is that my last backup was on January 14 with HA ver 2021.1.2 and supervisor ver 2021.01.4
do you think the new home assistant ver 2021.1.3 or 2021.1.4 or new supervisor ver 2021.01.5 changed something?
I don’t think so. This addon refuses smb1 since the very first version. It will only work if you explicitely set the compatibility_mode option. But even then LANMAN is too old. So actually this should have never worked then.
Your provided config is a mixture of this and the official Samba add-on, which are two completely different add-ons and have nothing in common. Please read the docs first to see which add-on supports which options.
Well that makes me laugh at least- Who would have thought that I need to use the actual add-on in order for it to work…sheesh I am stupid.
All is working great now, thank you for the help and the great add-on!!!
It’s really useful!
I want to share with everyone the card I made to track all the data coming from the sensor
(Vanilla home assistant only No custom card and whatnot)
I’m getting an error and no backup files. I think this started when I updated to version 4.4. The log says:
curl: (28) Failed to connect to supervisor port 80: Operation timed out
[07:58:55] ERROR: Something went wrong contacting the API
[07:58:55] ERROR: Unable to update sensor sensor.samba_backup in Home Assistant
I’ve had no snapshots taken since around the time I upgraded to 4.4.
I assume the answer is here somewhere, but I couldn’t find it in the thread, Google or addon documentation.
Due to the size of data I want to back up I can now only keep a few backups on Google Drive. I would like Samba backup to run alongside Google Drive backup in order to keep backups longer and avoid removing any data from backups. I don’t see it as a replacement as I still want backups offsite as well.
Anything I need to take into account before implementing Samba backup alongside the running Google Drive backup?
I am sorry if I missed it and it was already answered here, but is it possible to use this addon to only upload already created backup snapshots to samba server without creating new snapshots?
As I already have automated management of snapshots with different retention for incremental and for full snapshots, it would be great to not have to completely rework it just to upload snapshots to samba.
No, that’s not possible. This addon can only copy the snapshot it created. It does not synchronize the backup folder with a remote location.
But take a look at the Manual Triggers section. Probably you can reuse your automation logic.
@CaptTom Your issue is not reproducible. There must be something messed up in your environment if a addon (which runs in the supervisor scope) is not able to reach the supervisor API. I cannot tell the exact reason.
Thanks for providing this addon, make life a lot easier. I’ve got it up and running. I found a post regarding using the secrets.yaml file. But there seems to be a minor issue, especially when using special characters.
For one of my sensor I use a password containing \ and ". I’ve configured an entry in secrets.yaml, like:
system_passwd: 3hdgh\"j5
and it works with my configured sensor, but not with Samba Backup. For Samba Backup I found the solution:
system_passwd2: "3hdgh\\\"j5"
escaping \ and ". This works with Samba Backup, but not with my sensor.
As I use the username and password for the integration of my NAS, as well as for Samba Backup, it would be helpful, to just have one password.