Hassio 0.80.3 Snapshot service call options not working

I am able to call the hassio.snapshot_full and hassio.snapshot_partial services without issue, but when I add options that are referenced as working in earlier Hassio versions (eg 0.61), no backup files are generated.

  • hassio.snapshot_full call with data = {“name”: “test”} produces a file with a random name as if name option has not been specified.

  • hassio.snapshot_full call with data = {“folders”: “[homeassistant]”} saves only partial files from /config

What options should I put in to save all my main config files, including node-red?

I do not see any documentation on the service and a few community posts already requested them.

What I do to have one created?

1 Like

I do not know if it can help.
my configuration:
Hass.io supervisor 140
System HassOS 1.13
Home Assistant 0.83.3

My problem:
with automatic backup I had this error:

WARNING (SyncWorker_16) [hassio.snapshots.snapshot] Can not snapshot folder homeassistant: [Errno 2] No such file or directory: ‘/data/homeassistant/home-assistant_v2.db-shm’

My (wrong) automation was:

…partial automation


     - service: hassio.snapshot_full
       data_template:
         name: "Automatic backup {{now (). strftime ('% Y-% m-% d')}}"

Inside the back-up in folders: the Home Assistant configuration folder was missing.

Solution:
I removed the quotes (" ") from the name

     - service: hassio.snapshot_full
       data_template:
         name: Automatic backup {{now (). strftime ('% Y-% m-% d')}}

3 Likes