Hello,
TL;DR - I am unable to restore snapshots made with version newer than 0.109.2. How to fix snapshots to a) containt secrects.yaml and b) restore all settings?
Long story:
I had sd card failure on my rasppberry pi 4 with hassos. Luckily backups were made to google drive so I decided to upgrade to more reliable NUC setup with ubuntu and (soon to be deprecated/or not) docker. But trying to restore backup failed. No error messages displayed. Just extensions restored but no config files, no dashboards, no users, no manual integrations. I tried “restore” and “wipe and restore” with no better results. Eventually I decided to do a clean install and transfer all configurations one by one manually. I downloaded “Full Snapshot 2020-06-06 17_35_58.tar”, unarchived it, then unarchived “homeassistant.tar.gz” and found out that secrets.yaml is missing. Then I started checking all backups one by one date back to “Full Snapshot 2020-06-01 17/35/48.tar” - 06.01 was created using “0.109.2” … and to my surprise 06.01 backup contained secrets.yaml. Then I tried to restore this 06.01 backup and GREAT SUCCESS! Everything restored correctly - users, ssl, all addons and dashboards.
I presume something is broken with snapshot function. I also tried to do snapshot on NUC after restore and updating to 0.110.6 and secrets.yaml is still missing.
Snapshot json THAT WORKED
{
"slug": "47985b54",
"name": "Full Snapshot 2020-06-01 17:35:48",
"date": "2020-06-01T14:35:49.954271+00:00",
"type": "full",
"addons": [
{
"slug": "core_check_config",
"name": "Check Home Assistant configuration",
"version": "3.3.0",
"size": 0.0
},
{
"slug": "core_dnsmasq",
"name": "Dnsmasq",
"version": "1.3",
"size": 0.0
},
{
"slug": "a0d7b954_nodered",
"name": "Node-RED",
"version": "6.2.0",
"size": 0.0
},
{
"slug": "core_configurator",
"name": "File editor",
"version": "5.0.0",
"size": 0.0
},
{
"slug": "core_mosquitto",
"name": "Mosquitto broker",
"version": "5.1",
"size": 0.0
},
{
"slug": "cebe7a76_hassio_google_drive_backup",
"name": "Hass.io Google Drive Backup",
"version": "0.100.0",
"size": 0.0
},
{
"slug": "a0d7b954_zerotier",
"name": "ZeroTier One",
"version": "0.7.1",
"size": 0.0
},
{
"slug": "806b11b5_zigbee2mqttassistant",
"name": "zigbee2mqttassistant",
"version": "0.3.147",
"size": 0.0
},
{
"slug": "core_duckdns",
"name": "Duck DNS",
"version": "1.11",
"size": 0.02
},
{
"slug": "15ef4d2f_esphome",
"name": "ESPHome",
"version": "1.14.3",
"size": 83.56
}
],
"folders": [
"addons/local",
"share",
"ssl",
"homeassistant"
],
"homeassistant": {
"ssl": true,
"watchdog": true,
"wait_boot": 600,
"audio_output": null,
"audio_input": null,
"boot": true,
"port": 8123,
"version": "0.109.2",
"image": "homeassistant/raspberrypi4-homeassistant",
"refresh_token": "f705965e2b0c116c4cb490aafdc8023f6c973801d2ec5cc63c526fcef52af6fe9e4e766379a66232b55f7e421cf0f9f83071f8008a00e389d09587e42f4ba55b"
},
"repositories": [
"https://github.com/hassio-addons/repository",
"https://github.com/sabeechen/hassio-google-drive-backup",
"https://github.com/yllibed/hassio",
"https://github.com/esphome/hassio"
]
}
Snapshot.json that is not working
{
"slug": "78ee94b3",
"name": "Full Snapshot 2020-06-05 17:35:56",
"date": "2020-06-05T14:35:58.209353+00:00",
"type": "full",
"repositories": [
"https://github.com/hassio-addons/repository",
"https://github.com/sabeechen/hassio-google-drive-backup",
"https://github.com/yllibed/hassio",
"https://github.com/esphome/hassio"
],
"folders": [
"addons/local",
"share",
"ssl"
],
"homeassistant": {
"watchdog": true,
"boot": true,
"audio_output": null,
"ssl": true,
"wait_boot": 600,
"audio_input": null,
"port": 8123,
"version": "0.110.4",
"image": "homeassistant/raspberrypi4-homeassistant",
"refresh_token": "f705965e2b0c116c4cb490aafdc8023f6c973801d2ec5cc63c526fcef52af6fe9e4e766379a66232b55f7e421cf0f9f83071f8008a00e389d09587e42f4ba55b"
},
"addons": [
{
"slug": "core_check_config",
"name": "Check Home Assistant configuration",
"version": "3.3.0",
"size": 0.0
},
{
"slug": "a0d7b954_nodered",
"name": "Node-RED",
"version": "6.2.0",
"size": 0.0
},
{
"slug": "core_mosquitto",
"name": "Mosquitto broker",
"version": "5.1",
"size": 0.0
},
{
"slug": "806b11b5_zigbee2mqttassistant",
"name": "zigbee2mqttassistant",
"version": "0.3.147",
"size": 0.0
},
{
"slug": "core_configurator",
"name": "File editor",
"version": "5.0.0",
"size": 0.0
},
{
"slug": "a0d7b954_zerotier",
"name": "ZeroTier One",
"version": "0.7.2",
"size": 0.0
},
{
"slug": "cebe7a76_hassio_google_drive_backup",
"name": "Hass.io Google Drive Backup",
"version": "0.100.0",
"size": 0.0
},
{
"slug": "core_duckdns",
"name": "Duck DNS",
"version": "1.12.0",
"size": 0.02
},
{
"slug": "15ef4d2f_esphome",
"name": "ESPHome",
"version": "1.14.3",
"size": 83.56
}
]
}