Categories
Home Assistant Project Smart Home

Automatic Backups of Home Assistant

I go over a neat Hass-IO plugin that automatically backs up our hard work in Home Assistant to Google Drive.

One of the most important critical things to have on a large project such as home automation is a way to back up all of your configurations and files that you have spent countless hours working on. Home Assistant has a built in manual backup system that creates a complete backup of everything, but it is manual. If you are forgetful like me, then you can sometimes go weeks or months before you remember to create a backup. Even if you do remember to backup regularly, those backups are still located on the same system that you are trying to protect, so if, for example, a SD card fails, you might lose those backups too.

I recently discovered a plugin for Home Assistant that automatically creates a backup and stores it on Google drive for you. This plugin is very easy to set up and use, and once working, you can forget about backing up your system and start working away at making your system even better.

This plugin is written by sbeechen on Github (Link). They provide full instruction on how to add the plugin on the page, but I will provide a summary on this post.

Installing the Repository

The first step is to add the third party repository to Hass-IO, so it knows where to get the plugin from.

In your Hass-IO webpage, go to the Hass-IO admin page, then navigate to the Add-On Store tab at the top:

At the top of that page, there is a Repositories Section where we can add the Github link to the “Add new repository by URL” block.

https://github.com/sabeechen/hassio-google-drive-backup

Once you copy the link and select Add, the new repo should show up on your page.

Installing the Plugin

Scroll down to the bottom of the Add-Ons page and you should find the new Google Drive Backup plugin.

Select the plugin and once on the page, select install. Once installed, we will want to edit the config to meet out needs. Below is the config that I am using:

{
  "max_snapshots_in_hassio": 2,
  "max_snapshots_in_google_drive": 5,
  "days_between_snapshots": 1,
  "use_ssl": false,
  "snapshot_time_of_day": "00:00",
  "send_error_reports": true
}

With this config, I will keep the last 5 backup snapshots in google drive, and the latest 2 in local storage. The system will create a backup at midnight every single night, so at the latest, you only lose 24 hours of data.

Once the configuration has been set and saved, we can scroll back up to the top of the page and start the plugin.

Connecting the plugin to Google

At the top of the plugin page, there is a “Open Web Ui” button. Clicking this will go to the main page of the plugin where we can link our google account. Depending on your Google account, you may want to be careful what account you link the plugin to, as the snapshots can take up a bit of space depending on how much you have on Home Assistant. On the Web UI page, there is a “Authenticate with Drive” button near the top. Follow the instructions to link your google account.

What Now?

Now that everything is linked, we can sit back and watch as our hard work is saved automatically for us to the cloud. If something goes wrong and we need to recover our snapshot, all we need to do is install a fresh copy of home assistant, navigate to the snapshots section and select restore. Easy Peesy.

The plugin also adds a new sensor to Home Assistant that gives a status of our backups, so if anything goes wrong and the backups stop, we can trigger off of that to notify us.

3,314 replies on “Automatic Backups of Home Assistant”

Hmm is anyone else encountering problems with the images on this blog loading? Iะฒะ‚โ„ขm trying to determine if its a problem on my end or if itะฒะ‚โ„ขs the blog. Any feedback would be greatly appreciated.

Simply want to say your article is as amazing. The clarity in your post is simply cool and i can assume youะฒะ‚โ„ขre an expert on this subject. Fine with your permission allow me to grab your RSS feed to keep up to date with forthcoming post. Thanks a million and please keep up the enjoyable work.

Having read this I believed it was very enlightening.
I appreciate you taking the time and effort to put this
short article together. I once again find myself spending a significant
amount of time both reading and posting comments. But so what, it was
still worthwhile!

We’re a group of volunteers and starting a new scheme in our community.
Your site offered us with useful info to work on.
You’ve performed an impressive job and our entire neighborhood might be thankful to you.

I’m really impressed with your writing talents and also with the layout on your blog.

Is that this a paid topic or did you customize it yourself?
Either way stay up the nice quality writing, it’s rare to
see a nice blog like this one these days..

Greate pieces. Keep posting such kind of info on your site.
Im really impressed by your blog.
Hey there, You have done a fantastic job. I’ll definitely digg
it and individually suggest to my friends. I am sure they will be benefited from this site.

My partner and I absolutely love your blog and find many of your post’s to be what precisely I’m looking for.
Does one offer guest writers to write content to suit your needs?
I wouldn’t mind publishing a post or elaborating on a number of the subjects you write concerning here.

Again, awesome website!

Do you have a spam issue on this website; I
also am a blogger, and I was wondering your situation; we have created some nice
procedures and we are looking to trade techniques with other folks, be sure to shoot me an e-mail if interested.

I think this is one of the most vital information for me.

And i’m glad reading your article. But wanna remark on some general
things, The web site style is wonderful, the articles is really great : D.
Good job, cheers

Hey there just wanted to give you a quick heads up.
The text in your post seem to be running off the screen in Firefox.
I’m not sure if this is a formatting issue or something to do with web browser compatibility but I thought I’d post
to let you know. The design look great though! Hope you get the issue resolved soon. Thanks

Hmm is anyone else having problems with the pictures on this blog loading?

I’m trying to figure out if its a problem on my
end or if it’s the blog. Any suggestions would be greatly appreciated.

Terrific post however I was wondering if you
could write a litte more on this subject? I’d be very grateful if you could
elaborate a little bit further. Bless you!

excellent post, very informative. I’m wondering
why the opposite specialists of this sector don’t understand this.
You must proceed your writing. I am sure, you have a great readers’ base already!

Good day I am so happy I found your blog page, I really found you by mistake, while I was browsing on Google for
something else, Regardless I am here now and would just
like to say kudos for a tremendous post and a all round thrilling blog (I also
love the theme/design), I don’t have time to read through
it all at the minute but I have book-marked it and also
added your RSS feeds, so when I have time I will be back to read more,
Please do keep up the excellent work.

Very great post. I just stumbled upon your blog and wanted
to mention that I’ve truly loved surfing around your
weblog posts. In any case I will be subscribing in your feed and I’m hoping you write
again very soon!

Magnificent goods from you, man. I have understand your stuff
previous to and you’re just extremely magnificent.
I really like what you have acquired here, really like what you are saying and the way in which you say it.

You make it enjoyable and you still care for to keep it
sensible. I can’t wait to read much more from you.
This is actually a wonderful website.

I was wondering if you ever considered changing the structure of your blog?
Its very well written; I love what youve got to
say. But maybe you could a little more in the way of content so people could connect with it better.
Youve got an awful lot of text for only having one or 2 pictures.
Maybe you could space it out better?

Terrific work! That is the kind of information that are supposed to be shared around the internet.
Disgrace on the search engines for not positioning this publish upper!

Come on over and talk over with my web site . Thanks =)

Great goods from you, man. I have be mindful your stuff prior to and you are simply
extremely excellent. I actually like what you’ve bought right
here, really like what you are stating and the way wherein you are saying it.
You’re making it enjoyable and you still care for to stay it sensible.
I cant wait to learn far more from you. This is actually a wonderful
web site.

Great items from you, man. I have consider your
stuff prior to and you are just extremely fantastic.
I really like what you have obtained here, certainly like
what you are saying and the way in which by which you are
saying it. You’re making it enjoyable and you continue to care for to keep
it smart. I cant wait to learn much more from you.
This is actually a great site.

Hiya very cool blog!! Guy .. Beautiful .. Wonderful ..
I’ll bookmark your web site and take the feeds also? I’m happy to seek out
so many helpful info right here within the
publish, we’d like develop more strategies in this regard, thanks for sharing.
. . . . .

I must thank you for the efforts you have put in penning this website.
I’m hoping to view the same high-grade blog posts from you later on as well.
In truth, your creative writing abilities
has inspired me to get my own website now ๐Ÿ˜‰

ะ’ัะตะผ ะฟั€ะธะฒะตั‚, ั…ะพั‡ัƒ ะฟะพั€ะตะบะพะผะตะฝะดะพะฒะฐั‚ัŒ ะฒะฐะผ ั…ะพั€ะพัˆะธะน ัะฐะนั‚ ะพ ะคะพั€ะตะบัะต http://www.forex-book.top

Can I simply say what a relief to uncover someone that genuinely knows what they’re talking about on the net. You actually understand how to bring a problem to light and make it important. A lot more people must read this and understand this side of your story. I was surprised you are not more popular because you certainly have the gift.

This design is steller! You obviously know
how to keep a reader entertained. Between your wit
and your videos, I was almost moved to start my own blog
(well, almost…HaHa!) Excellent job. I really enjoyed what you had to
say, and more than that, how you presented it. Too cool!

Leading Online Pharmacy – Contact us at +1 (917) 259-3352 for unbelievable rates, discount and offers on any medicine. Get it delivered free of cost at your door steps, call us today. Phone : +1 (917) 259-3352

Hi! I could have sworn Iโ€™ve been to this website before but after looking at many of the articles I realized itโ€™s new to me. Regardless, Iโ€™m certainly happy I found it and Iโ€™ll be bookmarking it and checking back regularly!

I must thank you for the efforts you’ve put in penning this website. I’m hoping to view the same high-grade blog posts from you in the future as well. In fact, your creative writing abilities has encouraged me to get my very own blog now ๐Ÿ˜‰

Oh my goodness! Amazing article dude! Many thanks, However I am having problems with your RSS. I donโ€™t understand the reason why I cannot join it. Is there anybody getting identical RSS problems? Anyone that knows the solution will you kindly respond? Thanx!!

Howdy! This article could not be written much better! Looking through this post reminds me of my previous roommate! He always kept preaching about this. I am going to forward this article to him. Pretty sure he’ll have a very good read. Thank you for sharing!

ะŸั€ะธั…ะพะดะธั‚ ะฒั€ะตะผั ะธ ะดะธั€ะตะบั‚ะพั€ ั„ะธั€ะผั‹ ะทะฐะดัƒะผั‹ะฒะฐะตั‚ัั ะพ ะฟั€ะตะบั€ะฐั‰ะตะฝะธะธ ะฟั€ะตะดะฟั€ะธะฝะธะผะฐั‚ะตะปัŒัะบะพะน ะดะตัั‚ะตะปัŒะฝะพัั‚ะธ ั‚ะพ ะฒ ะฟะตั€ะฒัƒัŽ ะพั‡ะตั€ะตะดัŒ ะตะณะพ ะธะฝั‚ะตั€ะตััƒะตั‚ ะฝะตะฟะพัั€ะตะดัั‚ะฒะตะฝะฝะพ ััƒะฑัะธะดะธะฐั€ะฝะฐั ะพั‚ะฒะตั‚ัั‚ะฒะตะฝะฝะพัั‚ัŒ

I’m the owner of JustCBD company (justcbdstore.com) and I am currently seeking to expand my wholesale side of company. It would be great if anybody at targetdomain share some guidance . I thought that the most effective way to do this would be to reach out to vape stores and cbd retail stores. I was hoping if anybody at all could suggest a qualified web-site where I can purchase Vape Shop B2B Companies I am already taking a look at creativebeartech.com, theeliquidboutique.co.uk and wowitloveithaveit.com. Not exactly sure which one would be the very best choice and would appreciate any advice on this. Or would it be simpler for me to scrape my own leads? Suggestions?

An outstanding share! I’ve just forwarded this onto a friend who had been conducting a little research on this. And he in fact ordered me breakfast because I found it for him… lol. So allow me to reword this…. Thank YOU for the meal!! But yeah, thanks for spending the time to discuss this subject here on your web page.

Can I simply say what a relief to discover somebody that really understands what they’re discussing on the internet. You definitely understand how to bring an issue to light and make it important. More people really need to check this out and understand this side of your story. It’s surprising you aren’t more popular since you certainly have the gift.

Good post. I learn something totally new and challenging on websites I stumbleupon on a daily basis. It will always be exciting to read through content from other authors and practice a little something from other sites.

It’s the best time to make some plans for the
future and it is time to be happy. I have read this post and if I could I want to suggest you few interesting things
or advice. Maybe you can write next articles referring to this article.
I desire to read even more things about it!

Do you have a spam issue on this site; I also am a blogger, and I was curious about your situation; we have developed some nice practices and we are looking to exchange solutions with others, please shoot me an email if interested.|

Greetings from Idaho! I’m bored at work so I decided to check out your blog on my iphone during lunch break. I love the knowledge you provide here and can’t wait to take a look when I get home. I’m amazed at how quick your blog loaded on my phone .. I’m not even using WIFI, just 3G .. Anyhow, superb site!|

Everything is very open with a really clear clarification of the challenges. It was definitely informative. Your website is extremely helpful. Many thanks for sharing!

I am not sure where you’re getting your info, but great topic. I needs to spend some time learning more or understanding more. Thanks for great info I was looking for this information for my mission.|

Hello just wanted to give you a quick heads up and let
you know a few of the pictures aren’t loading correctly.
I’m not sure why but I think its a linking issue. I’ve tried
it in two different web browsers and both show the same outcome.

Undeniably believe that that you stated. Your favorite reason appeared to be on the net the simplest factor to remember of. I say to you, I definitely get irked even as other folks think about issues that they plainly do not realize about. You managed to hit the nail upon the highest and outlined out the entire thing with no need side-effects , people can take a signal. Will likely be again to get more. Thanks

Aw, this was an extremely good post. Taking the time and actual effort to generate a great articleโ€ฆ but what can I sayโ€ฆ I hesitate a lot and never seem to get anything done.|

Itโ€™s appropriate time to make some plans for the future
and it is time to be happy. I have read this post and if I could I desire to suggest you few interesting things or suggestions.
Perhaps you could write next articles referring to this article.
I wish to read more things about it!

Hey there! I’ve been reading your site for some time now and finally got the bravery to go ahead and give you a shout out from Austin Texas! Just wanted to tell you keep up the excellent work!|

Hey There. I found your blog using msn. This is an extremely
well written article. I will be sure to bookmark it and come back
to read more of your useful information. Thanks for the post.
I’ll certainly return.

Its like you read my thoughts! You seem to know so much about this, like you wrote the ebook in it or something. I feel that you could do with some percent to pressure the message house a bit, however other than that, that is wonderful blog. An excellent read. I’ll definitely be back.|

I have been browsing online more than three hours today, yet I never found any interesting article like yours. It is pretty worth enough for me. Personally, if all site owners and bloggers made good content as you did, the web will be much more useful than ever before.|

Do you mind if I quote a few of your posts as long as I provide credit and sources back to your blog? My website is in the very same area of interest as yours and my visitors would truly benefit from a lot of the information you present here. Please let me know if this okay with you. Many thanks!|

hello there and thank you for your info โ€“ I’ve definitely picked up anything new from right here. I did however expertise several technical points using this web site, since I experienced to reload the site many times previous to I could get it to load properly. I had been wondering if your web hosting is OK? Not that I’m complaining, but slow loading instances times will very frequently affect your placement in google and could damage your quality score if ads and marketing with Adwords. Anyway I’m adding this RSS to my email and could look out for much more of your respective exciting content. Make sure you update this again soon.|

Hi, I do think this is a great blog. I stumbledupon it ๐Ÿ˜‰ I’m going to come back once again since i have bookmarked it. Money and freedom is the best way to change, may you be rich and continue to help other people.

Somebody essentially help to make seriously articles I would state.
This is the first time I frequented your web page
and so far? I amazed with the analysis you made to make
this particular submit amazing. Magnificent task!

Hello, i read your blog occasionally and i own a similar one and i was just wondering if you get a lot of spam responses? If so how do you protect against it, any plugin or anything you can recommend? I get so much lately it’s driving me insane so any assistance is very much appreciated.|

Heya! I just wanted to ask if you ever have any
issues with hackers? My last blog (wordpress) was hacked and I ended
up losing several weeks of hard work due to no data backup.

Do you have any methods to protect against hackers? adreamoftrains
web hosting companies

I have been browsing online more than three hours nowadays, but I by no means discovered any interesting article like yours. It is lovely price sufficient for me. In my opinion, if all website owners and bloggers made just right content material as you probably did, the internet will be a lot more helpful than ever before.|

After looking over a handful of the blog articles on your blog, I truly appreciate your way of writing a blog. I book-marked it to my bookmark site list and will be checking back soon. Take a look at my web site as well and tell me how you feel.