Backup your Home Assistant Snapshots Automatically to the Cloud with Google Drive
Vložit
- čas přidán 25. 08. 2024
- In this video I will show you how to backup your Home Assistant snapshots automatically to the cloud using Google Drive and an awesome community add-on called Home Assistant Google Drive Backup. I will show you how to install and configure the add-on as well as how to automatically notify if it stops working.
Link to the add-on GitHub (Thanks Stephen!):
github.com/sab...
Hardware to run Home Assistant:
Raspberry Pi 4: amzn.to/2Dviwyh
Micro SD Card: amzn.to/3lqBk2v
Micro SD to USB Adapter: amzn.to/2GcAk1P
If you'd like to support me and future projects:
Patreon:
/ everythingsmarthome
Buy Me a Coffee:
www.buymeacoff...
Written Article:
everythingsmar...
EVERYWHERE YOU CAN FIND ME:
Everything Smart Home Community Discord:
/ discord
Twitter: / everysmarthome (@EverySmartHome)
Instagram: / everythingsmarthome
Facebook: / everythingsmarthomeoff...
#homeassistant #smarthome
________________________
Some of the links above are affiliate links, where I earn a small commission if you click on the link and purchase an item. You are not obligated to do so, but it does help fund these videos in hopes of bringing value to you!
Hey! I like to run around with my pants down. 😒
😂😂
but do you like to get caught ??
@@verwaeststijn I imagine it would depend who by and what came after
For those that want to backup on a network share: the Samba backup add-on works great!
Can you expandon this/ provide useful links if any?
I have been using this add-on since it came out. However I didn’t know about the backup sensor. Goes to show you even if you know what you’re doing, you don’t know everything and fresh eyes looking at the situation it’s always a plus. Thanks for the great content.
Thank you much, appreciate your support!
Very subtle homage to Paul Hibbert...love the video. Thanks for doing it and thanks to that man Stephen for putting the code together.
Thanks Ian!
Thank you this was very helpful. Day 1 owner of Home Assistant and wanted to start off on the right foot with a good backup strategy.
Amazing, have fun with Home Assistant!
Great video again, already use this but didn't know about the binary sensor - do now!!
Glad I could help out, it's an awesome add-on!
This is exactly what I use and it is awesome. The add-on creator is also very responsive and helpful.
That's really good to know, thanks for watching! 🙏
Thank you, starting a new smart home with home assistant and this offered immense peace of mind
Awesome!
When you add a third party repository, click Close, then press F5 to refresh your browser - they should appear at the bottom...
Thanks, wasn't showing up until I did that!
Thank you so much for this video this saved me lot of worries, yes I was living on the wild side because I keep getting errors on mounting an usb stick, now I just has to move everything to an SSD.
Thank you for the shout out and using my name suggestion for your channel 🙂🎉😁👊🏾🙏🏾
Thank you! Took me less than 2 minutes to setup after watching your video!
Excellent, glad it was useful!
Great video, so easy to follow (as usual :) )
I discovered your channel today and I'm binge watching all your video. much love from italy
Thank you, appreciate it! 🙏
That is a super clean add-on, and just what I needed. Thanks!
Glad it was useful Matt!
just starting with HA - your videos are clear well presented and useful wish I had found them earlier, would have saved me hours
Thnks Aidan, appreciate that! Glad your finding them useful!
saved me bacon ,couldn't remember where i stored the back ups ,home assistant lost all network christ knows why ,so went scorched earth and went for a new start ,halfway through watching released where my back ups were separate gdrive ,cheers
Love this format! And I just installed this add-on. Perfect timing.
Nice! But you couldn't possibly be suggesting that I talk too much previously could you? 🤔😂
@@EverythingSmartHome HAHA. Nope. I had been thinking of doing something like this on my channel since not everything has to be a long video...so I may steal this idea....
This video is toooo useful. Huge thanks for your effort!!!!
Thanks appreciate it! 🙏
Loving the new content... deffo my new favourite.
I've just added fully kiosk browser into home assistant... deffo a future video
Thank you my friend always appreciate your support!
Thank you so much for this. This is an incredible little add on!
It is indeed! Thank you for watching!
Thanks for these very helpful vidues. Just set this up on my machine, creating a Node-red automation to monitor the status sensor.
Glad they are useful!
Thanks for the quick tutorial! All set up!
I currently use the "Auto Backup" integration in HACS which allows for smart backup retention. I then have a node-red flow which calls this service to create snapshots regularly (or upon request). I then run a daily script on my file server (separate box) which mirrors the snapshot directory from my Hassio box over to my RAID array. This is then also included in my daily (with smart retention) backup offsite to OneDrive (at the moment, in the process of deploying a RPi-driven offsite backup that I control at a family member's house) using Duplicati. Seems overkill but then it's the same backup solution I use for my irreplaceable files and projects already.
Can never be too overkill IMO!
Thanks for the great video! There is one important thing that was not mentioned in the video that would have avoided me some troubles:
Be careful if like me you are using the Plex add-on with all your files saved in the 'media' directory.
In the add-on settings you should activate 'Partial Backups' and deselect the 'media' directory. Otherwise the add-on will try to backup everything.
I ended up with a temporary directory in the 'tmp' directory that filled up the whole ssd. Since there was not enough space left the back up failed and Home Assistant was not functioning properly anymore (could not assess remotely,...).
that's done no longer need to think about downloading them :)
Great add-on, literally a life saver 😂
I'm getting invalid add-on repository when I try to add it using the URL?
You are great. greetings from Turkey.
Thanks dude!
Super nice I was looking for a backup method and stopped due to it being too manual - thanks 😊
Thanks for watching, glad it helped!
Another great tutorial! I followed ant it worked great. Thanks!
Thank you sir!
Thanks for your video! I do it with nextcloud 😊
Your videos are great! Very informative and we'll put together 👍👍
Thank you, appreciate it!
Great tutorial.. Just added it to my HA.. Thanks
Awesome glad you liked it!
My back up is bad thanks for the video
Thanks, I'm lazy and forgetful when it comes to backup. Automatic backups.... Bonus!!!
Very handy for that! 😅
Thank you for this. It turns out that the bakups HA takes before an upgrade are only partial ones and the add-on takes full ones. Allowed me to migrate from an unsupported install (ubuntu + docker + supervisor) to a supported one (Home Assistant OS on VMware). I was worried about the InluxDB data not coming across, but it worked like a charm. Thank you!
Nice one! 🙌
Finally, one step ahead of you! 😉
Great video though 👍🏻
Will need to up my game 😔😂
@@EverythingSmartHome I don't think you need to worry about that 😂
So happy i installed this before hand, my harddrive in my server just died, luckily i have a spare ssd upgrade laying around
I use a Protectli Vault FW6E almost full spec with a native debian and hassio in docker. The box is fast enough to run virtual routers at the same time so I can make use of the 6 ethernet ports. And there is no active cooling🙂 Hassio runs blazing fast and stable on it, so I can highly recommend it.
oh and for testing hassio stuff I use an old intel i5 thinkcenter.. one of the small ones. Great for that purpose. I got it secondhand for 80 euro.
Very cool add-on. Much thanks, and subd!
Thanks Blake!
Great tutorial, thanks!
Thanks!!
Ideal! Thanks :)
Not used the automation you did at the end as I noticed on my install it said it would maintain a persistant notification in HA which I think is enough for me.
I run HA in Proxmox LXC container - should I automate snapshots there too? or is that overkill?
Thanks for another great vid
Legend mate, needed this
Thanks Lee!
Thanks for this very helpful video! Do you have a failsafe system for your HA in case HA or your hardware crashes? What's your view on this?
Hi, I dont know if you are still answering questions, but I get as far as the install and running but then I have 'backups' in the left hand menu appear and if I go into that I get the message "401: Unauthorized". I have tried this on another browser, in fact my phone and get the same thing. What have I done wrong?
I have literally just installed mine (a couple of days ago) and my BackUp on the left-hand menu shows my backups.
gr8 - that's what I was looking for.
Glad it helped!
Great video! Really nice feature :)
Have you thought about an video about motion eye? I’m very curious about its limits with different kind of cameras and especially the limits on a raspberry pi!
One subscriber more 👍
Thanks very much! I'll definitely add that one to the list! Only problem is I don't have a free Pi 4 🤔
This addon doesnt work for me. When trying to install on new Home Assistant, it says "AddonManager.install blocked from execution, system is not healthy". Also this addon stopped working on my other Home Assistant system some time ago. Anyone knows how to solve it?
Hi, I've added the repo but it doesn't appear on my add on list
Nice find :D installed :D love it :)
Thank you!
@@EverythingSmartHome REALLY love the addon :) thanks again man :) I like to give back. Take a look at shinobi for cct cameras. Kinda pain to setup, but soooooooo light on the processor. Motion eye did 90% cpu.. this one 4%...
Will definitely take a look thanks!
Thank you this was very helpful for a newbie. I have had to start and restart on a number of occasions, but now I can just restore from snapshot saves. Can you do a video on organizing your config.YAML if you get a chance? I really appreciate your videos, a lot of the videos online are not up to date and its hard to follow.
Thank you, I'm really glad it was useful! 🙏
Since you are using an add-on I presume this method is intended for HASS installations? I thoughy you prefer Docker? How to you back up that system? Presumably a Linux system backup solution?
Thank You!
Thanks for watching!
Simply superrrrr.... 😘
time for an update video :-)
czcams.com/video/MTlkjVrpo-o/video.html :-)
Does this also backup custom things, like hacs or only the core HA?
Is there a way to back up my HA to Nextcloud?
Thank you for the good explenation - I implemented it in my system successfuly ...... until I came up with the idea to run a NAS drive in my Media-Folder. As this folder is included in a full backup the stared ~150GB data the backup did no work well any more (SSD nearly full, Raspi-temperature ~+10°C elevated for ~6h).
Is there any way to exclude a specific folder from the automatic backup?
Hey guys! I installed this integration and it works good so far. My problem is, when I try to restore the backup (because e.g. nothing works anymore) I use the following way: I put the HA image on my micro sd card and install the google backup directly. I connect ot my google-account and restore the last backup back to HA. Now the problem is, that it doesn't restore the old "setup" sompletely, because the e.g. integration "nodered" doesnt work anymore. The system shows up the error 502 again (I know there is a workaround to solve the 502 problem, but I don't want to put so much effort on setting up my HA again. It just shall be perfectly done by just restoring the google drive backup.) But that is definitly not happen, or am I doing something wrong??
Hi, thanks for this video !
I never try to restore a full snapshot and I don’t know if the mariadb and influxdb are saved properly.
Could you please help me on this ?
Thanks
I love your videos but Can't find the "Snapshot" anywhere under supervisor. I am trying to create a new machine from the back up
It's now called backup and is under configuration > add-ons and backups
Thanks for video. As a raw newby there are a couple of things I am not clear on. Firstly, I have Google Drive set up. But say I lose HA totally, if say my microSD card on the RPI fails. Before I start to do the backup I assume I will have to put a new HA instance on my replacement SD card. But to do a full recovery do I then have to install all the ADD ONs I previously had on my old HA, on the new HA, before I then try to do a full restoral from Google Drive. Or will the Google Drive snapshot do this for me. Final question , will my new HA instance be linked to Google Drive automatically or will I have to do this myself.
Thanks! No you simply download the snapshot from drive and upload and restore it from HA, no need to install anything
I'm a bit confused about what is being backed up. I have a used space of 9 GB but the backup is 32MB only. For example, I have a manually installed docker/container called Home Bridge that I installed with portainer. I don't see that Home Bridge installation in the add-on list. Will that be backed up as well? Why is my backup so small? Does the backup take all the sql/sensor history and all the manually added addons etc?
I want to connect an USB disk (SDD) my I can't get it working on mi PI3
The last time I was successful restoring a backup was probably more than a year ago. I've never HAD to restore, but just doing it to verify that my restore does actually work. But in doing so, I discovered that restoring a backup always breaks my HA and it just simply won't boot. I had to resort to backing up using the Linux dd command, which works flawlessly because it backs up the whole SSD partition. I stopped using the backup several months ago because of this breakage. When was the last time you attempted a restore and was successful?
I did a Restore yesterday from a settings Backup. It is a little scary since there is no information of where it is in the process. My backups are about 200MB, so it takes a while to process and start. My suggestion is to wait until you see the normal restart notifications on the screen. The BIG surprise was that HA comes up with a ton of stuff unavailable! Turns out Zigbee needs to reestablish the network of devices...and this can take a while. Just have to be patient. You will probably see the devices closest to the controller coming on first. After that everything worked fine.
Well, that was painless.
great idea and video but you are a bit quick for me regarding installing the add-on - I am getting "Invalid Add-on repository!"
Hi!! Bro i have few devices from Xiaomi, ESPs and Sonoff... which are being controlled from Google Home Assitant... the issue i face is, when i am travelling sometime i am out off network coverage and the schedule or event for Google Home or Sonoff devices is not triggered is there some way to run at least google home based processing on the machine i am running Hassio on?
Hey Lewis, how about covering the AdGuard add-on in a future video?
Good suggestion!
I'm having problems on installation of Google Drive Backup Addon. I can install it but can't start it. Clicking Start just goes into spin for 2 minutes then appears as Start again. No link for UI view, connecting to Google Drive or any settings. Supervisor logs show it started server and found backup files but times out waiting for addon Home Assistant Google Drive Backup to start. The dot in the upper right is red (stopped). Any ideas?
Restart homeassistant by cutting the power. Don't use the normal restart option within HA. had the same issue and that fixed it for me.
@@ascendsays2927 Thank you! Working fine right now.
is there a way to do something similar with OneDrive?
Not that I know of sorry but I haven't really looked
Are there any setups for backing up to a local NAS instead of Drive? Thanks!
There is a similar project somewhere for SMB shares, hope that helps!
Great tutorial! Made it as far as the snapshots automation, but "snapshots stale" didn't autopopulate the entity field. Tried searching for it in the add on store, but no success. Is that an official add on?
They are called backups now but everything else is the same
@@EverythingSmartHome Thank u! New to HA and absolutely loving your tutorials!
When I go to add the repository it doesn't seem to show up on the addon list as it does at 2:00 in the video
Edit---just kidding, I updated to the latest Home Assistant and it showed up! : )
Hi, I have Drobo 5D as my backup. however I want to backup it to my google drive. How can I do that? when uploading 20GB of video it always stop in mid of uploading because the computer slept. what is the best option?
Hello, sorry I don't understand quite what you mean?
I would like to see a google-less version of this, if anyone wants to see the work flow I come up let me know lol
So I run HomeAssistant Core as I had to run it side by side with my Octoprint, can Supervisor be added to this?
It can, if you are running Debian 11
@@EverythingSmartHome I ended getting a dedicated PI just for HA so I can leave core alone haha. I now have cloud backup sorted :) Thanks!
Please make a CATT tutorial, I am making a podcast menu but it stops every 10 minutes
I mean... Could it be easier... nope. Easy AF
Why is Jack Dorsey making hass videos?
Do you have any esp32 or 8266 window sensor making? If there is a website please route me. I need devices for HOME ASSISTANT monitoring.
Thanks!
Hello, sorry I'm not sure I understand the question?
Ever made window sensors for security DIY?
I have but they aren't worth it over off the shelf solutions
I wish you could backup to OneDrive I have 5TB to play with
Maybe one day! 😅
In the future HA does not save backups with date&time name. Just eight hexadecimal digits and ending with ".tar". E.g "825f1023.tar".
Is it possible to translate this into the real HA name? There is also the date from the OS of course, I guess I could use that date&time.
And thanks for the video! At least I have some backups now.
Hello! Check the email (and spam) with a letter of cooperation (Gglot)
Hey !
Thank you for this amazing add-on :)
But ... i can't find the entity binary_sensor.snapshots_state ... i just find binary_sensor.backups_state. What's wrong with my conf ?
Home Assistant 2023.8.2
Supervisor 2023.08.1
Operating System 10.4
Interface utilisateur : 20230802.0 - latest
This is such a great add on! Thanks for the recommendation