Regular backup of Google Drive Backup turns your Home Assistant into a nine-life monster – Home Assistant Step-by-Step Tutorial EP 11

Just like computers and mobile phones, Home Assistant also needs to be backed up. Whether it is upgrading or replacing a device or recovering from a system crash, it is very convenient. Although there are backup options during system updates and add-on updates, through Google Drive Backup automatic backup allows you to more easily retrieve system backups at a certain time in the past, and you can restore them at any time. It is highly recommended to set this add-on as early as possible during the initial startup of the Home Assistant system!


Step 1. Add-on repositories

Because Google Drive Backup is not a native built-in Add-on of Home Assistant, you need to add a new repository to install it.

  1. "Settings" on the left
  2. Click "Add-ons"
設定 >  附加元件
  1. Click "Add-on Store" in the lower right corner
附加元件商店
  1. "... > Storage Mechanism" in the upper right corner (this translation is so strange😅)
  2. Paste the input box with "https://github.com/sabeechen/hassio-google-drive-backup.git"
  3. Click "Add"
新增 repository

Repository addition completed!

google drive backup repository 新增完成

Step 2. Install Google Drive Backup Add-on

  1. Click "Home Assistant Google Drive Backup"
    If you can't find it, just refresh the page and it should be there. If it still doesn't exist, go back to the previous step to confirm whether the repository has been added successfully.
Home Assistant Google Drive Backup
  1. Click "Install"
安裝 Google Drive Backup
  1. Turn on "Watchdog" (required), "Automatic update" (optional), "Show in sidebar" (optional)
  2. Click "Start"
啟動 Google Drive Backup

Step 3. Configure Google Drive Backup

  1. Click "Open WEB UI"
開啟 WEB UI
  1. Click "Setting"
  2. Adjust the settings. You can set them according to your needs, but there are several settings that are highly recommended:
    • Password: Enhance some security. You will need to enter a password to use it when you restore it in the future, so if someone gets your backup file in a bad way, you can't use it if you don't know the password.
    • Keep Generational Backups: This setting can be used to keep older versions of backup files. Here I set 3 days, 3 weeks, 3 months, 1 year. You can also set it according to your needs.
設定 google drive backup
  1. Click "AUTHENTICATE WITH GOOGLE DRIVE"

💡In my case, each backup file is about 100mb. Different system setting complexity may produce backup files of different sizes. It is recommended that you refer to the capacity of your Google Drive to consider whether to open another Google account specifically for backup.

AUTHENTICATE WITH GOOGLE DRIVE
  1. After logging in, you will get a bunch of keys, click "COPY"
取得 token
  1. Return to the previous screen and paste the key in the input box below
  2. Click "SAVE"
貼上 token

You're done!

When you finally see this picture, it’s a success! I have been using HA for two years without backing up. I really admire my own luck🤣 You must not imitate this!

I’ve seen too many people cry without tears after HA crashed because they didn’t back up HA. I was really too lazy before🤣

完成 google drive backup 備份

2 COMMENTS

    • Hi M, thanks for the encouragement, I hope it helps you! It was discovered that I have posted more frequently recently🤣

LEAVE A REPLY

Please enter your comment!
Please enter your name here

you might like
recent discussions
  • Jerry 2025/04/14Thank you very much Neil for your selfless sharing. The websites you provided are of great help to me. I will save it first and digest it slowly^^ I also look forward to Neil's industry news and teaching articles in the futureHome Assistant Floor plan A new experience in smart home control with visual floor plan! – Home Assistant step-by-step tutorial EP 6
  • Neil 2025/04/13Hi Jerry, I usually get information about HA from these places: Website: – Home Assistant official Release notes – Automata – Home Automation Community – Weijia Home Intelligence FB Group: – Taiwan Home Assistant enthusiasts exchange – Home Assistant YouTube channel: – Smart Home Solver – Everything Smart Home – Home Assistant Programming language: Strictly speaking, YAML is not really a programming language (let me make this clear in case some people mind 🤣), but if we include these data formats or style languages that “look like” programming languages, and sort them by depth of use in HA (the deeper the bottom, the deeper the bottom): – YAML (data format): a language for configuration files used in many places in the HA environment. – CSS (style language): used to adjust the interface style (font size, color, image, position, etc.). – JSON (data format): If you use Node-RED, you will probably come across it. – Jinja2 (Python template syntax): You may encounter it when you explore automation or Dashboard in depth. ※ But in fact, even if HA does not know the above, it can still make a smart home complete. You don’t have to put so much pressure on yourself, but if you are interested, it is also good to know more. It is actually difficult to generalize about the support of devices. Now, even if the home appliances themselves do not support it, there are still many different ways to connect traditional home appliances to HA. In addition, cases like Haier do require in-depth research. What I usually do is to crawl a lot of information on the Internet, and usually find attempts made by others. It just so happens that when I was looking up other information recently, I saw someone sharing how Haier water heaters were connected to HA. But it is indeed like what you said, if you get involved for a while, you will understand these details more and more. 🤣Home Assistant Floor plan A new experience in smart home control with visual floor plan! – Home Assistant step-by-step tutorial EP 6
  • Jerry 2025/04/10Hello Neil: After observing for 1 or 2 days, everything seems to be normal. Maybe it’s because the system was not stable during the initial setup period!? The more I play, the deeper I feel. I also find that I still have many shortcomings. I wonder if Neil can share and teach everyone how to fish? For example, recommend good websites, forums, FB groups, youtube videos, or give some guidance. In addition to the YAML language, would it be helpful to know some CSS syntax? Do I need to know other languages? I can even start a new teaching direction. When I see non-big-name products that claim to support APP (such as products from mainland China), I can teach everyone how to identify whether they can be connected to HA and how to ask customer service? Where can I see supported articles or platforms? This kind of experience sharing, I think, will be very helpful to everyone. I am currently looking to buy a heat pump water heater from Haier. Haier is a big manufacturer in the world and has its own APP. I have also found Haier's kit from HACS, but it does not seem to support heat pump water heaters. Does that mean it cannot be connected to HA? Or is there any channel to check it? There are also many flat panel lights and fan function lamps on the other side of the strait, which also claim to support APP connection, but they are all small manufacturers and it is difficult to tell whether they can be connected to HA. These are the problems I am facing now. If the home appliances I buy are different from what Neil shared, I don’t know where to start. Maybe I'm still too inexperienced. If I play for a few more months, maybe the above problems won't be a problem anymore, haha^^Home Assistant Floor plan A new experience in smart home control with visual floor plan! – Home Assistant step-by-step tutorial EP 6
  • Neil 2025/04/09Hi Jerry, I tested it myself and it was fine, but please note that because it is controlled through the cloud, there is an extra layer of brand mediation, so it is not suitable for fast switching. I tested it myself and it took about 1 second to complete the synchronization after clicking. Remember to put the entity in entities, otherwise the status display may have problemsHome Assistant Floor plan A new experience in smart home control with visual floor plan! – Home Assistant step-by-step tutorial EP 6
  • Jerry 2025/04/07Thanks Neil for clarifying this. I tested it later and found that when using the "button panel" to control the switch of the Electrolux air conditioner (the same model as Neil), the device will respond to turning on or off in about 1 second, but the "status icon" for turning on is much slower, and it takes about 30 seconds. The "status icon" for turning off is normal, and the "status icons" of other negative ion switches and the "status icons" of the monitoring light switch are also normal, which made me think there was a problem with the synchronization. I'll test it again, maybe it's caused by the wrong setting.Home Assistant Floor plan A new experience in smart home control with visual floor plan! – Home Assistant step-by-step tutorial EP 6
  • Neil 2025/04/07Hi Jerry, 1. This method is through cloud integration, which is actually using HA to call Xiaomi/Electrolux to control the device. 2. It is not normal. If this happens, you may need to check whether the entity you display on the floor plan can truly represent the status of the device. If not, you may need to try other entities of the same device.Home Assistant Floor plan A new experience in smart home control with visual floor plan! – Home Assistant step-by-step tutorial EP 6
  • Jerry 2025/04/07The problem is solved. Thanks again to Neil for his help^^ I have two more questions about concepts. Neil, do I have any misunderstandings? 1. I connected Xiaomi and Electrolux devices to HA through HACS. Is it still connected through WiFi? Before connecting, you need to obtain API key and Access Token from the official. This means that the communication between HA and the device still needs to go through the official. It’s just that the official APP can be replaced and all integrated into the HA APP for control? 2. After testing, when controlling the device through physical operation or the original official APP, the HA app cannot know the status of the device synchronously, but it can know the opposite. Is this normal? For example, the Xiaomi electric fan at home was turned on by someone physically before going out, but when the person is outside, he cannot know through the HA app that the device was forgotten to be turned off. He has to connect to the Xiaomi app to know!?Home Assistant Floor plan A new experience in smart home control with visual floor plan! – Home Assistant step-by-step tutorial EP 6
  • Ghost 2025/04/07Xiaomi Home currently does not support Taiwan. For now, you can only use Xiaomi Miot Auto. As for Xiaomi Cloud Map Extractor, I currently have a 2FA problem. There seems to be no simple solution. I haven’t tried it successfully yet.Home Assistant must-install HACS plug-in installation steps detailed explanation – Home Assistant step-by-step tutorial EP 17
  • Neil 2025/04/07Jerry, it seems that the click action cannot penetrate the part where the picture changes because of the overlapping pictures. Try adding pointer-events: none to the style.Home Assistant Floor plan A new experience in smart home control with visual floor plan! – Home Assistant step-by-step tutorial EP 6
you might like