Add-on: Home Assistant Google Drive Backup

In case the folder rename would be critical, you may have the approach to delete only the files corresponding to the name template (If somebody changes the template he will have to delete the old manually…)

@sabeechen I was doing this by hand and just found your add-on. It’s great and appreciate the option to create our own Google API credentials. Thanks so much. Great work! You are the man! :+1:

@sabeechen who are you man?! Are you god? Maybe spiderman? This add-on is amazing! So much attention to detail in UI, alerts, tips, everything works, even has upload back-off on failure. Gold medal for sure :medal_sports:
Small suggestion: make links open in new tab from “Google Drive is Full” alert. I do not know if there is any HA limitation for doing so.

Thanks for the kind words, I’m glad people are still discovering the addon and liking it. I strive for Quality.

A small update on what its future will probably look like:
At this point, to my knowledge, there are no know issues or bugs with the addon. Since I’m unable to devote serious amounts of time to it, here are my priorities going forward:

  • Triage/fix bugs as they’re pointed out to me
  • Help new users having trouble.
  • Avoid breaking anything thats currently working.
  • Support new features in HA/Hass.io as necessary.

New features are largely put on hold, though I plan to add support for multiple back up folder/installations just because its been so frequently requested. That will likely be the last “big” feature for a while. No project like this is ever really “complete” so these priorities will probably change in the future when needs arise.

5 Likes

What a fantastic Job !! many thanks

Hi Great addon, Tks. Already tested recovery and everything went smoothly.
Would it be possible to give a friendly name to a backup?

installed it and work great !!! finally a backup system with external backup as well

@dede34fr You can change the snapshot name in the settings menu in the web UI. You should see it called “Snapshot Name Template”.

I was looking for setting a name for each individual snapshot (based on content, home setup version, etc), not just a generic name for all snapshots.

The template options are pretty extensive. For instance {type} Snapshot {year}-{month}-{day} {hr24}:{min} version {version_ha} will give you “Full Snapshot 2020-01-10 22:48 version 0.103.6” as filename but there are many more options

There are a bunch of variables you can add, details here. I tried to add everything a person could want (hassos version, HA version, date stuff, etc) but if there is something else you think would be useful let me know, I can probably add it in.

Hi All,

Is there a way to change to “backed_up” in “sensor.snapshot_backup”

Would be nice to see “Backed up” without the _

Cheers

Just put out a new release, 0.100.0. Refresh the addon-store page to see the update. Its been a while, but this one has some spicy features! :hot_pepper::hot_pepper::hot_pepper:

New Stuff

  • Now you can select a backup folder. Check for it in the settings. Lots of people have wanted this so they can backup multiple Hass.io installs to the same Google Drive account.
  • The addon checks for and displays disk usage. It will also stop and wait if it thinks the next snapshot will make you run out of space. It can only guess and estimate based on your last snapshot size, so it won’t catch everything, but it should help most. You can turn it off in the settings.
  • After speaking with my doctor at my annual checkup, he’s assured me that I’m no longer allergic to money so if you’re into that kind of thing you can Buy me a coffee.

Changes

  • If you reinstall the addon, now it will ask if you want to reuse the old snapshot folder or select a new one. This should help avoid running into conflicts at restore time if you use multiple snapshot folders.
  • Fixed all kinds of jank, all over the place.
7 Likes

I think it would be great if it were possible to decide that e.g. could save the local backup without a password and the backup on Google with a password. It often happens that you only want to view a file from the backup locally, but cannot because the backup is encrypted. But without encryption I don’t want to back up Google either.

Hello, I’ve been using this for sometime now, it’s perfect.
Unfortunately I had to reinstall HASSIO and now, when trying to add the repo to HACS, I get an error (‘Validation for sabeechen/hassio-google-drive-backup failed.’).
Is there a way to install it manually?

The addon isn’t part of the HACS platform, it only runs on Hass.io’s platform. Make sure you’re trying to add it through Hass.io’s addon store page (“Hass.io” > “Add-on Store”).

1 Like

Why do I see this when trying to install ?

Can’t install sabeechen/hassio-google-drive-backup-armhf:0.100.0 -> 404 Client Error: Not Found (“no such image: sabeechen/hassio-google-drive-backup-armhf:0.100.0: No such image: sabeechen/hassio-google-drive-backup-armhf:0.100.0”)

Is there room on your SD card?

There should be :

root@Pihole:/usr/share/hassio# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        15G  4.6G   10G  32% /
devtmpfs        109M     0  109M   0% /dev
tmpfs           114M     0  114M   0% /dev/shm
tmpfs           114M  9.9M  104M   9% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           114M     0  114M   0% /sys/fs/cgroup
tmpfs           1.0G  4.0K  1.0G   1% /tmp
tmpfs            50M  8.0K   50M   1% /var/log
tmpfs            10M  1.4M  8.7M  14% /DietPi
/dev/mmcblk0p1  253M   54M  199M  22% /boot
overlay          15G  4.6G   10G  32% /mnt/dietpi_userdata/docker-data/overlay2/189ab8f2d019bfe5612057b2f0f9d62719c191a9e01e054d6f1e496aae15d96e/merged
overlay          15G  4.6G   10G  32% /mnt/dietpi_userdata/docker-data/overlay2/66a4cec8e94ec6203c18afd8dc237112c6581a77a9c3e3460e2e623ba5fa3bb1/merged
overlay          15G  4.6G   10G  32% /mnt/dietpi_userdata/docker-data/overlay2/0ea2eeed9fe92dcf8a7f1f91798cf9c119a426d4ef4f2e7bd06dabd052e0a9e1/merged

Its strange you’d get that error message, the image sabeechen/hassio-google-drive-backup-armhf:0.100.0 certainly does exist. 404 implies that Docker Hub thinks it doesn’t. I don’t have an armhf device to test the addon with, but I’m able to download the image just fine via docker pull:

$ docker pull sabeechen/hassio-google-drive-backup-armhf:0.100.0
0.100.0: Pulling from sabeechen/hassio-google-drive-backup-armhf
546eec1e02ac: Already exists
0d682d3a1794: Already exists
5b5c20de8ff5: Already exists
746d9e77f0e2: Pull complete
5b41ce5fcc00: Pull complete
22662a3081ac: Pull complete
a5a8db2e014e: Pull complete
d8e7eaf94ebe: Pull complete
262ceec1bf04: Pull complete
Digest: sha256:c740dbba168d96732890d9fb294130b4807ffb75bd001ded61c4366169806688
Status: Downloaded newer image for sabeechen/hassio-google-drive-backup-armhf:0.100.0
docker.io/sabeechen/hassio-google-drive-backup-armhf:0.100.0