Location of snapshots via ssh

I am currently trying to recover a ‘lost’ hass.io Snapshot instance. It seems I only have SSH access to hass.io via shh -p 22222. However I can’t find the location of the snapshot file, in order to safeguard it via scp.
Another option I do have is putting the SD card in my Synology Nas, so I can browse all the EXT4 volumes, but still I don’t know where to look.

I tried searching the Hass.io developer guide and this community but nothing. Via Samba it’s so so easy, but I can get Samba up.

Thanks community.

I came across the same issue, I remember hearing that they were in a folder called backup

I gave up in the end, and used a HassIO addon which uploads the snapshots to dropbox.

I then downloaded the snapshot from dropbox and then uncompressed it as I needed a few folders within my /config folder

It may be worth looking inside the docker containers, the snapshots may be in there.

on my system they are in /usr/share/hassio/backup but I am running hassio in docker on Debian. If you use Winscp and search for even your configuration.yaml it will be in a folder above that (the backup folder) You should be able to locate it - it will be there somewhere.

5 Likes

Thanks for the input above. You helped me actually not giving up. For the sake of documenting for the generations to come:

I’ve found the backup directory located here: usbshare1-8/supervisor/backup/
Note that I’ve inserted the SDcard to my Synology NAS, in order to be able to read the EXT4 file-system.

2 Likes

I managed to recover with your method (Synology). You saved my life. Thank you !!

I’m running Hass.io in a docker container on Ubuntu 18.04 and I found the backup files in /data/backup

I brute forced it with the find command a simple command

find . *|grep backup

Thanks David. This helped me a lot.

1 Like

Thanks for the tips. I find a tar file there that is roughly the size of home-assistant_v2.db. I will copy that to offline backup. Does anyone know if recovering from a crash is as easy as rebuilding the system and then restoring the snapshot? I am running Supervised Hass in Docker.

Yes that easy. I have done multiple times.

I could use some serious help here last update my entire system shutdown when it came back up. dug down to my hass data all my snapshot/backups were gone except two. my entire system has reverted back to more than a month ago.

Hi Sir David,
have you checked whether the location of the backups has been renamed since Home Assistant moved from ‘snapshot’ to the ‘backup’ terminology? That would be my first direction in finding a solution.

The Directory has always been and is /backup
Probably just need to refresh the backups in supervisor (if they actually exist in the directory)

I have refreshed multiple times and nothing. I think they are gone. also now since i have to start over almost at the beginning. I am have trouble even getting file editor working. its installed but will not load