How to Back Up and Restore Your Home Assistant Server
Data loss is inevitable, and may occur due to hardware and software failures. However, with regular backups, you can restore the data and critical applications, such as Home Assistant, back to their original or last working state. Here we’ll explain a few different methods to create full and partial backups of your Home Assistant server on a local drive and cloud storage. You will also learn how to schedule automatic backups and use these backups to restore your Home Assistant server after a failure.
Ways to Back Up Your Home Assistant Server
There are two different ways in which it’s possible to schedule or create local and cloud backups of your Home Assistant server:
Manually Create Home Assistant Backups on the Local Drive
You can create a full or partial backup of your Home Assistant Server on a local drive by following these steps:
Schedule Automatic Home Assistant Backups
You can automate these manual backups by using theHassio.Backup_FullorHassio.Backup_Partialservice. To do so, follow these steps:
Alternatively, you’re able to click on the three dots at the top in the automation window, chooseEdit in YAML,paste the following code to create an automation for backup, and clickSave.

This will run the backup service and create a full automatic backup of the Home Assistant Server at 2:00 every day.
Alternatively, you can install theSamba Backupadd-on to schedule the backups andset up a network-shared folder on Ubuntu with Sambato automatically copy the backup to the shared location.

Schedule Automatic Home Assistant Backups and Upload Them to Google Drive
Using theHome Assistant Google Drive Backupadd-on, you could enable automatic backups of your Home Assistant Server. The add-on also automatically uploads the Home Assistant backups to Google Drive and cleans up the old backup so that the server or Google Drive doesn’t run out of space.
To install and set up automatic cloud backups to Google Drive in your Home Assistant Server, follow these steps:

Once you have configured the Google Drive Backup for Home Assistant, you don’t need to worry about Home Assistant backups anymore. It also offers several customization features that it’s possible to explore and use.
it’s possible to install and configure add-ons, such asOneDrive Backup,DropBox Sync, orNextcloud Backup, to store an additional copy of the Home Assistant backups in the cloud.

Steps to Restore Home Assistant Server Backups
If something goes wrong with your Home Assistant Server, such as damage to yourConfiguration.yamlfile or if the servers start acting up, you caninstall the Home Assistant Server on a Raspberry Pior Docker and then upload the last backup to restore the Home Assistant to its normal working state.
You can upload and restore the backup just after Home Assistant finishes the installation and before the initial setup where you create an account. Instead of signing up…

You may also upload the backup later, after the initial setup:
Back Up Now!
Backups are crucial, especially when you run a critical application, such as a Home Assistant server for your smart home. If you are using the Home Assistant server, you know the effort it takes to find the best configurations and settings to add and make your integrations, add-ons, smart devices, entities, automation, scripts, scenes, and so on work. We can’t even think of setting up the Home Assistant server from scratch. If you feel the same, back up now!
Build an RF remote switch with a quad-channel relay to control up to four devices wirelessly.
My iPhone does it all, but I still need my dumb phone.
Taming data is easier than it looks.
Every squeak is your PC’s way of crying for help.
OneDrive is one of the best, but it has a catch.
It saves me hours and keeps my sanity intact.