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
  • Lokous 2025/05/15Neil, I would like to ask you, I have set up HA on NAS through VirtualBox. Because my home is a townhouse, the smart home I want to realize is on different floors. The NAS is currently placed on one floor and connected to the data base of Chunghwa Telecom. The other mesh ports of Chunghwa Telecom are connected to the Switch, and the network routes are pulled to other floors. The other floors all have their own Wifi Routers and their own Wifi. At present, I only want to realize the smart home for a certain floor. I would like to ask, 1.) Do I need to buy a corresponding gateway for each floor for the Z2M gateway?! Is the required location to connect to the NAS (with HAOS installed)?! Or is it on the Router of each floor (all belong to the same domain)?! 2.) I have purchased Aqara M2 and G3, mainly hoping to control home appliances (such as fans, air conditioners, TVs, etc.) through the infrared function of M2 / G3. How can the "infrared control part" and "G3 monitoring and AI recognition" and other parts be integrated into HA?! Please guide me again, thank you very much! ^^Home Assistant Connect ZBT-1 + ZHA The most brainless native Zigbee gateway connects (almost) all Zigbee devices – Home Assistant Step-by-Step Tutorial EP 16
  • Neil 2025/05/15Hi Willson, 1. First confirm whether the NAS detects the USB: Use dmesg or lsusb to see if there is a new device. If not, try another USB port or check if there is any problem with the driver. 2. Check whether the NAS has passed USB passthrough to HA: This depends on how you set up HA. If you use Docker, try adding –device=/dev/ttyUSB0 –privileged to the container settings, or manually mount it in the devices section of docker-compose.How to connect Home Assistant to (almost) all Zigbee devices through Zigbee2MQTT – Home Assistant Step-by-Step Tutorial EP 2
  • Willson 2025/05/14Hello Neil, I use NAS to set up HA. I bought the USB version and plugged it into the NAS. However, when I checked all the hardware in the system, I did not see any new devices. What could be the possible cause of this problem?How to connect Home Assistant to (almost) all Zigbee devices through Zigbee2MQTT – Home Assistant Step-by-Step Tutorial EP 2
  • V3 game 2025/05/12Thanks for sharing such detailed installation steps! I’ve always wanted to try building a smart home, and this article gave me more confidence to start. Looking forward to ep 2!Home Assistant installation steps detailed, quickly build a smart home – step-by-step tutorial EP 1
  • Neil 2025/05/07Hi Lulu, it depends on whether you want to control the switch intelligently. I usually don't recommend using traditional switches with smart lamps, because in this case the traditional switch can only be always on so that the lamp can be powered and connected to the line. In short, if you want to use smart lamps, it is recommended that the switch be equipped with a neutral line. After the neutral line is pulled, there are two ways: 1. Use a zero-fire switch with a decoupling function with smart lamps, set the switch to decoupling mode (the lamp is always powered, only for remote control), and set the switch to link the lamp in HA. 2. Use a zero-fire switch with smart lamps, directly connect the live wire and the control wire at the switch (the control wire does not enter the switch), and finally set the switch to link the lamp in HA.A complete analysis of smart home lighting control solutions: smart switches, smart bulbs, smart relays, there is always one that suits you!
  • Lulu 2025/05/05Hello Neil, I would like to ask, the current smart lamps already have recessed lamp types, do I still need to pull a neutral wire?A complete analysis of smart home lighting control solutions: smart switches, smart bulbs, smart relays, there is always one that suits you!
  • MINECRAFT APK 2025/04/26Very detailed installation steps! This article helped me successfully complete the setup of Home Assistant. I look forward to the follow-up tutorials! Thanks for sharing!Home Assistant installation steps detailed, quickly build a smart home – step-by-step tutorial EP 1
  • 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
you might like