@Tomahawk, here’s a POC of an addon that does some of what you want. Every time you start the addon, it’ll automatically copy all backups to /dev/sda1, then apply the retention policy, then stop. You can automatically start the addon with hassio.addon_start service via an automation.
To install it, create a folder named \\hassio.local\addons\copy_backups_to_sda1 then place all 3 of these files in that folder. Refresh your addons and install it.
I don’t plan on continuing development on this. If you decide to improve on it, let me know how things progress.
I don’t have the knowledge to further develop this.
Unfortunately, I can’t get your addon to work.
Getting this error: “Error on Hass.io API: Addon not exists”
I have tried:
addon: copy_backups_to_sda1
addon: ‘copy_backups_to_sda1’
addon: [‘copy_backups_to_sda1’]
addon: [COPY_BACKUPS_TO_SDA1]
Should this work as is?
And is it possible to add a default password to the service: hassio.snapshot_full?
I’m having this problem as well. this used to work for me when I had hass.io running on ResinOS (somewhere around version ~0.71 – I moved to a VM for a while) but not sure if it is supported with HassOS now that I’m back on the Pi.
I’m open to suggestions to get this to work, but I am exploring other options (since this addon is not being supported).
I mostly use the Dropbox snapshot backup these days to get the snapshot off my host machine.
Also I use hassio on openmediavault so the snapshots are stored on an SMB shared folder that’s outside of the docker container, so I’m not as worried about losing that data (as opposed to a SD card on a Raspberry Pi).
Hi Guys,
We really need a good official solution to get the backups automated AND automatically off of the device.
I know this is a can of worms with the options for ‘destinations’ but something really does needs to be done. I think a good clean start might be to NAS or other network share requiring ip/dns name, u/n and p/w easily configurable from the ui
I strongly feel this is more than a feature request, it is more of a requirement of any modern device or appliance with complex configs and custom scripts, automations and logging history.
There are many discussions on this topic in various threads all with unsupported and or incomplete examples, but I would only trust an official route on this important and necessary issue.
It works great, but is complicated for users without network knowledge. I wonder why this feature request does not have more votes? It would be such a simple back-up possibility for everyone, especially with regards to “streamlining”…