Add-on: Home Assistant Google Drive Backup

Anyway, thanks for the answer.

Thank you for this wonderful Addon. I have a black custom theme, it seems that it doesnt look ok with your ingress based addon. What can I do?
It looks like this:

Hello
I can ser that there is an option in the new version just to take a backup locally and not sent it to Google Drive. But I cannot find that option

Its under Settings -> “Enable Google Drive Upload”

For now, you still have to connect the addon with Google Drive to get it to take snapshots even if upload is disabled (weird I know) but I’m working on that.

Hi just wondering it would possible to use (have modified or added to ) tot backup a second folder ?
Ie I have Hassio capture video from camera on motion, in config/www/camera/ and it would be great to be able to easily back them up to google drive while leaving the latest stored in the camera folder.

Very useful add-on. Thank you for your great work.

@rraven there no way to customize the UI right now, but likely I’ll add at least a dark theme in the future. I’ve added a feature request for it.

@Kelvin_Sudlow The add-on should back up everything in the /config folder (unless you configured partial snapshots to exclude it) but it won’t clean up old videos/files in specific folders. You would have to write an automation to do that. I admit I might not be understanding what you’re asking.

2 Likes

Thanks yes completely forgot they would get backup based on the fact they are in the config directory.
Ideally I will be moving to a folder outside the config folder.
Really was just after a simple way to replicate a folder in Hassio to google drive with ability to auto delete old files on Hassio but leave them on google drive, very much like what you do with snapshots.
Basically the same as you have here but just for one folder outside the config folder ie share/camera.
This is how I am looking at capturing videos etc from my camera ie on motion capture stream to /share/camera - than have something backup the folder to google drive.
Hope that makes more sense, but the way your google drive backup is fantastic.

I get the following error when I try to authenticate from a fresh install

Everything was working fine before but now it seams stuck in “pending” mode. Running hassio 0.97.2. There is some reference to faq but didnt find any info there. I have try restart both of hassio and the addon. Any suggestions?


Pending means the addon thinks Hassio is trying to create a snapshot right now. It could be that

  • Your snapshot is very big and just taking a long time, for example a raspberry pi can take hours to package up a snapshot if its many GB’s in size. This seems unlikely given how big your most recent snapshot is.
  • Hassio is hung up trying to create a snapshot. Sometimes it can get into a bad state and take a while to get out of it.

In almost all circumstances, things should get moving along and recover from being stalled/failed. For example after 3 hours of waiting for a snapshot to complete the addon will assume it failed and ask for another one to get created. Unfortunately, Hassio doesn’t provide any feedback in the web UI (or available through the API for the addon to consume) to indicate a snapshot’s progress once its started or if it failed.

You might be able to find information in the Supervisor logs (“Hassio” > “System” > “System Log” from the Home Assistant interface) but if nothing shows up there, I’d give restarting Hassio or the host machine a shot.

@cjackson234 Can you get me the url you were going when you the 500 error? Its hard to tell if its from the addon, hassio or the external authentications server.

My motioneye addon had indeed store some heavy things (like 60-80gb movie files), after deletion its now working again. Would it be possible to implement a pre-screening before backup and let the system show a warning if files exceeds xGB?

Thanks! Great addon

I know it was going to https://philosophyofpen.com but I don’t have the full URL. I ended up manually restoring an install that already had this addon working. Let me test again and see if I get that error

philosophyofpen.com is a webserver I run to handle the authentication with Google (see here if you’re curious about that). Its hosted using some really cheap Google Cloud hardware so sometimes it will go down for a few minutes while Google finds a new place to host it, could be you just hit it at an inopportune time.

@sabeechen
Thank you very much for the very useful add-on. Can I recommend to anyone !!! Works without problems, and is very easy to set up …:+1::muscle:

This is slick and has cool features. I’ve moved over from a combination of the dropbox add-on and the Syncthing add-on.

I agree! This is the SHIZNIT!! Thanks @sabeechen Super easy to setup!!!:smiley:

Great work @sabeechen! installed and fully operative without a single problem.
Thank you very much.

Is there a way to get the snapshots to exclude certain things specifically? I realise that there are partial snapshots, but I only want to exclude the MotionEye camera recordings… Any tips?