Home Assistant Core does not have an automated retort process and must be restored manually. These steps work if you’re restoring from any install type of Home Assistant to Core. Personally, i’ve used this to convert my setup of Home Assistant Docker to Home Assistant Core
To do this:
- Login to Home Assistant
- Go to Settings > System > Backups
- Click Create Backup - It will take a few minutes depending on your setup
- Once the backup is created, click the Download button against your backup and download to your computer
- A file will be created such as “core_2022_12_9.tar” - At this point you can either untar and gunzip the files or upload the files and uncompress the files on your Home Assistant. You can do this a few ways, my recommendation is to enable SAMBA.
- Untar this file and folder will be created with a backup metadata file and a homeassistant.tar.gz - This second file contains the backup data
- Gunzip homeassistant.tar.gz and a data folder is created - This is where your configuration backup now resides
- The data folder contains the backup - If you’ve uncompressed on your computer, copy the folder over, don’t just copy the files as there are hidden directories in this folder.
- Change directory to /home/homeassistant/.homeassistant
- Copy the files from the data directory to /home/homeassistant/.homeassistant: sudo cp -rf [path to data] .
- Copy the .storage folder to /home/homeassistant/.homeassistant : sudo cp -rf [path to data/.storage] .
- Copy the .cloud folder to /home/homeassistant/.homeassistant : sudo cp -rf [path to data/.cloud] .
- The most important thing to note is the .storage directory that’s hidden is copied over as well - This contains your dashboard data
If you choose to copy the files and directories under data themselves, be sure to show hidden files:
macOS:
- Open the data folder
- Press Command + Shift + . (the period key) - This shows hidden files
- Copy the files over
- Press Command + Shift + . (the period key) - This hides the hidden files
Windows:
- Open the data folder in the File Explorer
- Select View > Show > Hidden items This shows hidden files
- Copy the files over
- Select View > Show > Hidden items This hides the hidden files