Created new add-on to backup snapshots to Google Drive

Hi

I recently installed this addon but i cant reach the web ui (set on port 8055) !

the error i get is connection refused, even if i change the port or change the link from myDomain.duckdns.org/gb to 192.16X.XXX.XXX:[port]/gb

and the error i get if i start the automation is the same exposed from @sermayoral in the 71 post

any guess?

thanks

Use 192.16X.XXX.XXX:[port]/gb or hassio.local:[port]/gb from your web browser to access the UI for setting up authorization with Google Drive.
Use 192.16X.XXX.XXX:[port]/gb/doBackup to perform a backup manually from your web browser.
Use localhost:[port]/gb/doBackup in your rest_command setup to facilitate backup automations.

The web UI will not be accessible from outside your network unless you’ve configured port forwarding for that specific port on your router.

Double check your IP address by trying this from a command line:
ping 192.16X.XXX.XXX

Try stopping and restarting the add-on.

Below is my configuration for the rest_command and automation. Notice the timeout value of ‘300’ given as a string in single quotes, not as an integer without any quotes.

I have my automation setup like this:

- id: '1541263656718'
  alias: Run Google Backup
  trigger:
  - at: 02:00:00
    platform: time
  condition:
  - condition: time
    weekday:
    - mon
    - wed
    - fri
  action:
  - service: rest_command.google_backup

The automation uses a REST command that I setup like this:

rest_command:
  google_backup:
    url: 'http://localhost:8055/gb/doBackup'
    timeout: '300'

thanks for the reply @samccauley !!

this are the steps i made:

  • accessed the front end trough the ip 192.168.X.XXX:8123

  • open the tab Hassio

  • open the “Backup Hassio to Google Drive” addon

  • start the addon

  • click the web ui button that automatically open a web page → http://192.168.X.XXX:8055/gb

same error → ERR_CONNECTION_REFUSED

iìve tried to modify the ip with the https:// form but nothing…

i’ve noticed this in the log section:
GB_DEBUG = false
Segmentation fault (core dumped)

i still dont get what the hell i made wrong… it’s basically a mini web server on the 8055 port but i cant access it !!!

Can you show me what the configuration you have on the add-on looks like, please?

sure:

Oh! I just saw the segmentation fault. Sorry, I missed that earlier. You’re probably running 64 bit version of hassos. There seems to be an issue with the Python 3 and Alpine 3.9 on 64 bit architectures. The issue doesn’t present on 32 bit systems. I’ll have to create an alternative build for people running on 64 bit. I’m not sure how soon I’ll be able to do that, but I hope to do it soon.

yup, 64bit version! sorry… i didn’t mention that

sooooo i’m not that dumb :joy:

i’ll wait the 64 version!!!

Please give version 1.5.2 of my add-on a try on 64 bit hassos. I believe I may have the segmentation fault problem taken care of.

2 Likes

I was able to install and authorize access on my 64 bit hassos. Thanks!

1 Like

Perfect, it works!

Good job :wink:

1 Like

great add-on! Just installed and all is working perfectly!

1 Like

Thank you.

I just used the google backup in an automation and it worked great. Nice addition to Home Assistant.

1 Like

Hi
I have installed the addon and it seems to work but.

The TAR files don´t end up in the right folder in my google Drive. And the names are stranged.

I have one automation that makes a backup and names the files automated backup date.

But then when the files they get names like 2588bc.tar

How to fix these problems?

Regards

The tar name is standard for snapshots… not much can be done about that.

Thanks but i mean the file names. Not the format.

Check the folder ID you gave the add-on during setup. It can only upload to that folder.

As for the name, I thought about looking into this but given that I back up once per day its easy to figure out which backup aligns with which day by looking at the timestamp.

If you look in your /backup folder of your hassio install you will see the file names of the snapshots in that folder are exactly the same as your google drive.

I meant the file name as well. It is standard and nothing you can do to change it. The data hassio shows in embedded in the rar file itself.

Great idea! So far I’ve been using the folder watcher component to tell when the config was updated, and trigger a backup, then SyncToy (on Windows) to sync it to Drive using an eventwatcher command to launch the sync.