Trying to build an automation for a partial backup but when I use the service call page and fill the example the service call doesn’t do anything, here’s what I’ve got:
service: hassio.backup_partial
data:
folders: homeassistant,share,addons,config,ssl
name: Partial backup test
Is there anything in the log? If you’re running hassos like me, there is no “/homeassistant” or “/addons” folders. These would instead be separate tag to backup homeassistant and/or backup specific named addons. This is more obvious in the UI mode.
I can try that, but I’m not sure how to find out the right naming scheme of all of my addons? Inside my system there’s an addons folder but it’s empty but I have the following addons installed:
Make a partial backup via the Ui backup screen including only the things you want, let it backup then view the resulting file in any decent zip software and look at the names of each item and you will see
The automation ran for 0.2 seconds and then finished without doing anything.
I narrowed down to problem to be the “folders” section, once I removed everything there the backup worked just fine.
Then I thought “maybe the automation can’t find the folders” and started searching for them - and didn’t find them!
Neither of them are available on my rasperry pi installation, which seems to be a problem for the automation.
for testing purposes I just used a different folder I could actually see with the file editor.
I chose the “share” folder, added it to my automation and the backup triggered as it should.
conclusion:
it seems like the service hassio.backup_partial has a problem if you want to backup folders that do not exist (though it somehow shows those folders when doing a manual backup and has no problems with that - kinda strange!)