Add-on: Home Assistant Google Drive Backup

I’m running Home Assistant Core (in a Docker container on Lubuntu), so I don’t have the Supervisor option to install this. Is it available for HA Core users? If so, could anyone point me to instructions for installing it?

The addon only runs on HA with the supervisor, because it depends on the supervisor to actually create snapshots and create the environment it runs in. Unfortunately I’m not aware of a way to conveniently back up just HA Core to Google Drive.

I’m sorry, if I disrupt this thread, but I have a few things to say, and thought it would fit in here. :slight_smile:

As my work in real life gets me in touch with a lot of open-source projects and their owners, I have to say, this is the best project I’ve seen in a very long time!

It is clearly structured, the information provided to install and use it is very well written, the support is great and the design is easy but understandable - all in all it really hits my top three out of all the things I’ve seen regarding open-source software! :+1:

So, to sum it up, @sabeechen you did an exceptional work here and one can only congratulate you! Thank you for providing us with a really great addOn. If I ever need an “IT guy” :wink: :rofl: in the US, I’ll give you call, that’s for sure! :slight_smile:

Thanks a lot! :slight_smile:

2 Likes

I get this error trying to install it:

Failed to to call /addons/cebe7a76_hassio_google_drive_backup/install - Can't install sabeechen/hassio-google-drive-backup-aarch64:0.104.3: 404 Client Error for http+docker://localhost/v1.40/images/sabeechen/hassio-google-drive-backup-aarch64:0.104.3/json: Not Found ("no such image: sabeechen/hassio-google-drive-backup-aarch64:0.104.3: No such image: sabeechen/hassio-google-drive-backup-aarch64:0.104.3")

This normally means you don’t have enough disk space left.

space

Is this correct? I should have space then.

I’m not sure, but is the rPi3 supported with 64-bit? I’d suspect, that the 64 bit version is only for the rPi4.

You could check the repository if there is a version available for 64bit.

Just a thought. :slight_smile:

Weird that it defaults to x64 then.

It runs 64bit. As the screenshot says rpi3-64

Seems like I have 21GB free spacespace2

It could also be a DNS issue…

Got the integration to install, have no idea why it didn’t work the first time. I see my full snapshots made in Home Assistant is only 3-4mb in size, that is way to low, correct?

Size depends on db size… mine are around 500mb with 7 days data… Are you sure you are letting it complete the snapshot? 3-4mb doesn’t sound right

Great it’s working! :slight_smile:

The size can be realistic, if it is only “HA core” that is saved. My snapshot of ust core is around 6mb. But if all Add-ons are backed up as well, mine grows to around 180mb, where ESPHome takes the biggest part with around 130mb. :slight_smile:

Check what is really saved. And foremost, try at least to restore one full blown backup. Wouldn’t be the first time, that after a year one is needing to restore a backup, finding out none of the backups ever worked… :wink:

EDIT: In response to David, I’m saving my data to a MariaDB, so I don’t backup the “original” HA db, all the data is backed up by the MariaDB Add-on.

This is a full snapshot though. I never do partial snapshots. I don’t have many integrations installed, as I mainly use deconz for my zigbee enabled devices.

ha_210817_snapshot_size

Sounds about right, I’d say. But as I mentioned above, try to restore it, you never know. :slight_smile:

I will be migrating to a Rpi4 with an SSD in the next couple of weeks, so I will see whether it works out or not :slight_smile:

He said it was a full snapshot. I also use mariadb and it is backed up when you do a full snapshot.

The issue you saw about “no such image” has happened a few times (see relevant issues) but I’m not sure what causes it. I suspect its a supervisor bug, but I’ve never been able to reproduce it locally to verify. It seem to go away after either restarting the host machine or reinstalling the addon.

Its using the 64 bit images (``aarch64```), you can see that at the end of the image name it was having trouble finding locally.

Home Assistant and the addon use the exact same mechanism to create full snapshots, so the only reason they’ll be different sizes is if you have more stuff to package up.

When trying to run the add on for the first time, I’m getting the following errors in the logs:

An unexpected error occurred: list index out of range
  addon/backup/model/coordinator.py:176 (_sync)
  addon/backup/model/model.py:178 (sync)
  addon/backup/model/model.py:294 (_handleSnapshotDetails)
  addon/backup/model/backupscheme.py:194 (handleNaming)
  addon/backup/model/backupscheme.py:117 (_buildPartitions)
IndexError: list index out of range

When I’m trying to create a snapshot manually, i get following error:
Could not create snapshot. Creating a snapshot is not possible right now because the system is in startup state

I’m running HA OS on Odroid N+:
Core: core-2021.8.8
Supervisor: supervisor-2021-06.08
Host OS 6.2

Tried to reboot, power on/power off, etc. The errors remain. Any thoughts on what I’m doing wrong?