Quite a special use case. You cannot install the addon twice and you would probably run into troubles with the cleanup routines if you have two instances.
If you have the power and disk space, you could of course run the addon every hour to make a backup of the whole system (including InfluxDB). But you have to set the trigger to manual and use your own automation for that. It’s not supported out of the box.
Currently I’m doing the addon nightly automated partial snapshot without the few bulky addons I have. I manually do a full backup every week or so and store it in another location.
No, not possible but it’s not a bad idea. I can make parameters overwritable, but I don’t want to introduce new options in that scenario: so, since there is only an exclude option, this can also only be exclude.
And I think only the parameters that affect the snapshot creation (e.g. backup name, password, exclude options) should be overwritable. The others like host, share and target directory should be fixed as they were already pre-checked before.
Samba Backup 3.0 with quite a few new features is released
As requested by multiple users, I’ve worked on the triggers. With this release you can trigger a manual backup from Home Assistant whenever you want, even though you are using the time-based schedule of the add-on. In addion to that I also introduced a new mqtt-based trigger.
The configuration options that affect the snapshot creation (exclude_addons, exclude_folders, backup_name, backup_password) can now be overwritten for a single manual run. Please check the README for the correct usage.
Hello!
That’s a one great add-on. Thanks for sharing!
Question from myself: Would it be possible to create a simple sensor without the need of using MQTT? I don’t use MQTT myself and setting that up broker for only one sensor seems to be an overkill
For now you only have the mqtt option. But I’m actually already working on a sensor via the Home Assistant REST API. When I’m finished with that, you have a sensor out of the box.
so I looked at your code an see that you also use smbclient. Unfortunately the smbclient doesn’t seem to be installed on hassio, so I assume that is the issue
smbclient is installed in the container of this addon (the warning is directly coming from smbclient). You won’t find the command in the ssh addon - I assume you’re testing with that.
Since you successfully tested smbclient from another machine. Did you use the exact same config? And is the IP address really reachable from your RPI?
Hi Thomas, thanks for responding. Yes i tested it with the exact same details. And the synology nas is reachable via ping from the rpi. For the Configruation i tried the host with slashes, without, etc… but the error is always the same, that is quite confusing.
And yes I used the ssh add on to test the smbclient directly on the rpi
Here it is Samba Backup 4.0 - again a bigger release with new features and improvements.
The main new feature is a sensor for Home Assistant which reflects the current status and additionally includes some useful statistics within its attributes. Important: If you already have a sensor called Samba Backup (sensor.samba_backup), make sure to rename or delete it. Otherwise the sensor won’t work correctly.
Mqtt support is now deprecated. Because of the new sensor, I do actually no longer see the need for mqtt in this add-on. For now everything works like in the previous version, but my plan is to completely remove mqtt in order to simplify and cleanup the code. Please use the new sensor instead.