⏱️Timestamps⏱️
0:00 Why SD cards fail in Home Assistant
0:25 Creating a full local backup
0:46 Saving your encryption key
1:09 Pro tip: Automate cloud backups
1:46 Safely shutting down your Raspberry Pi
2:44 Flashing Home Assistant OS to your new SSD
3:41 Installing the SSD into your Raspberry Pi
4:21 Restoring your Home Assistant backup
5:10 Verifying your smart home is working
How will you benefit?
SD Cards are not built for the constant data writing of a smart home and will eventually fail, wiping out all your hard work. In this video, I'll show you exactly how to safely migrate your entire Home Assistant setup from a fragile SD card to a lightning-fast SSD with zero data loss!
How to Migrate Home Assistant from SD Card to SSD: A Step-by-Step Guide
Running Home Assistant on an SD card is a risk to your data. Because SD cards aren't designed for constant data writing, they can eventually fail. In this guide, I will show you how to migrate your setup to an SSD without losing any automations, entities, or settings.
Step 1: Create and Secure Your Backup
Before moving to new hardware, you must create a full backup of your current system:
- Go to Settings > System > Backups.
- Click Configure backup settings and ensure all addons and apps are selected.
- Important: Show and copy your Encryption Key. Save this in a notepad file; you will need it later.
- Create a new backup by clicking Backup Now.
- Once finished, download the backup file to your computer to ensure you have a local copy.
Step 2: Flash Home Assistant OS to the SSD
Use the Raspberry Pi Imager to prepare your new drive:
- Select your Raspberry Pi model (e.g., Pi 4 or Pi 5).
- Under "Operating System," choose Other specific-purpose OS > Home automation > Home Assistant.
- Select your SSD as the storage device. Warning: This will erase all data on the SSD.
- Click Write and wait for the process to complete.
Step 3: Hardware Swap
Properly shut down your Raspberry Pi via the Hardware settings menu before unplugging the power.
- Remove the SD card from the Pi.
- Connect the SSD to one of the blue USB 3.0 ports.
- Plug the power cable back in. The first boot can take up to 10 minutes.
Step 4: Restore Your Data
When the Home Assistant onboarding screen appears, don't start fresh. Instead, click Upload Backup and select the file you saved earlier.
If you see a "500 Internal Server Error," don't panic—just press CTRL + F5 to refresh the page. After the restore process finishes, your smart home will be back online, running faster and more reliably on your new SSD.
