Back Up Home Assistant to Cloud for Free
In this article
- Why Cloud Backups Matter for Home Assistant
- Built-in Backup Options: What You Get for Free
- Free Cloud Services That Work with Home Assistant
- Step-by-Step: Using Google Drive Backup Add-on (Free)
- Alternative: Network Storage Backup (No Add-on)
- Choosing the Right Free Method
- Common Problems and How to Avoid Them
- Frequently Asked Questions
Yes, you can back up your Home Assistant configuration to the cloud without paying, using the built-in backup feature combined with a free cloud storage service that supports WebDAV or SMB, such as a free tier from a provider or a self-hosted solution. The most straightforward free method is to use the official Home Assistant Google Drive Backup add-on, which works with a free Google account, or to configure a network storage backup to a free cloud service that offers WebDAV access.
Why Cloud Backups Matter for Home Assistant
Home Assistant runs your smart home automations, device integrations, and custom configurations. Losing that setup means re-pairing dozens of devices and rewriting automations from scratch. A cloud backup protects against SD card failure, a corrupted install, or a stolen Raspberry Pi. While you can copy files to a USB stick, cloud storage adds off-site protection—if your house floods or the device is stolen, your configuration is still safe.
Built-in Backup Options: What You Get for Free
Home Assistant (both the Home Assistant Operating System and Supervised installations) includes a built-in backup tool. It creates a single .tar file containing your configuration, automations, add-ons, and their data. You can trigger a backup manually or schedule it automatically. The free tier of this feature lets you store backups locally on the device, but to get them to the cloud, you need to connect a network storage location or use an add-on.
- Local backup: Stored on the same device, useful for quick restores but not off-site.
- Network storage (SMB/WebDAV): Home Assistant can push backups to any SMB or WebDAV server without a paid add-on.
- Add-on backups: Community add-ons like Google Drive Backup or OneDrive Backup automate the process and often include encryption.
Free Cloud Services That Work with Home Assistant
Several free cloud services offer WebDAV or SMB access, which Home Assistant can use directly. Here are the most practical options:
- Google Drive (via add-on): The official Google Drive Backup add-on uses your free 15 GB of storage. It requires creating a Google Cloud project for API access, but the process is well-documented.
- OneDrive (via add-on): Microsoft gives 5 GB free. The OneDrive Backup add-on works similarly, using the OneDrive API.
- Box (WebDAV): Box offers 10 GB free and supports WebDAV, though the free tier may have limitations on file size for uploads.
- pCloud (WebDAV): pCloud gives 10 GB free and supports WebDAV, making it a solid choice for direct network storage.
- Self-hosted WebDAV: If you have an old PC or a Raspberry Pi at home, you can run a free WebDAV server (like
wsgidav) and access it from anywhere via a VPN or reverse proxy—truly free, but requires technical setup.
Step-by-Step: Using Google Drive Backup Add-on (Free)
The most popular free method is the Google Drive Backup add-on. It encrypts your backups before uploading, so even if someone accesses your Drive, they can't read your data without the key.
- In Home Assistant, go to Settings → Add-ons → Add-on Store.
- Search for “Google Drive Backup” and install the official add-on.
- Start the add-on and open its Web UI.
- Click “Connect Google Account” and follow the authentication flow. You'll need a Google account and may need to create a Google Cloud project for OAuth credentials—the add-on's documentation provides a step-by-step guide.
- Once connected, configure the backup schedule (e.g., daily at 3 AM) and choose how many backups to keep (e.g., 7).
- Enable encryption and store the encryption key in a safe place (like a password manager).
- Click “Save” and then “Back up now” to test.
After the first backup, you'll see the file in your Google Drive under a folder named Home Assistant. The add-on also supports restoring directly from the Drive during a fresh install.
Alternative: Network Storage Backup (No Add-on)
If you prefer not to use an add-on, Home Assistant's built-in network storage feature can push backups to any SMB or WebDAV share. For a free cloud option, use a service like Box or pCloud that provides WebDAV URLs.
- Go to Settings → System → Storage.
- Click “Add Network Storage”.
- Choose WebDAV as the type.
- Enter the WebDAV URL (e.g.,
https://webdav.box.com/davfor Box), your username, and password. - Give it a name (e.g., “Cloud Backup”) and save.
- Then go to Settings → System → Backups, click the three-dot menu, and select “Backup Location” to choose the network storage as the destination.
This method doesn't encrypt by default, so consider enabling Home Assistant's backup encryption (available since 2024.1) with a strong password.
Choosing the Right Free Method
Your choice depends on your technical comfort and storage needs.
- Easiest: Google Drive Backup add-on—set-and-forget, but requires a Google Cloud project setup.
- Most private: Self-hosted WebDAV—full control, but you must manage the server and security.
- No add-on: Network storage to Box or pCloud—simple, but you must manually configure WebDAV and may lack automatic encryption.
All free tiers have storage limits (15 GB, 5 GB, 10 GB). Home Assistant backups are typically small (a few MB to a few hundred MB), so you'll likely stay within limits unless you have many add-ons or large media files.
Common Problems and How to Avoid Them
Users often hit these issues when setting up free cloud backups:
- Authentication failures: For Google Drive, ensure your OAuth credentials are correct. A common mistake is not enabling the Drive API in the Google Cloud project.
- WebDAV connection errors: Some services require a specific URL format. For Box, use
https://dav.box.com/dav(notwebdav.box.com). - Backup size limits: Free tiers may restrict individual file sizes. If your backup is large, compress or split it, or consider a paid tier.
- Encryption key loss: If you encrypt backups and lose the key, you cannot restore them. Store the key in a separate location.
- Schedule not running: Ensure the add-on or network storage is enabled and the Home Assistant timezone is correct. Check the logs for errors.
Frequently Asked Questions
Is Google Drive Backup add-on really free?
Yes, the add-on itself is free and uses your existing Google Drive storage. Google's free tier includes 15 GB, which is plenty for Home Assistant backups. You don't need to pay for Google Workspace or any add-on subscription.
Can I use Dropbox for free?
Dropbox's free tier offers 2 GB and supports WebDAV, but Home Assistant doesn't have an official Dropbox add-on. You can try using the network storage feature with Dropbox's WebDAV URL (https://dav.dropbox.com), but Dropbox has deprecated WebDAV for free accounts in recent years, so it may not work. A more reliable free option is Box or pCloud.
What is the safest way to store backups in the cloud?
Enable encryption on your backups before uploading. Both the Google Drive Backup add-on and Home Assistant's built-in backup encryption (available since 2024.1) use strong AES-256 encryption. Store your encryption key in a password manager, not in the same cloud account as the backups.
How often should I back up?
It depends on how often you change your configuration. If you tweak automations weekly, a daily backup is safe. If you rarely change anything, a weekly backup is sufficient. The add-on lets you set a schedule; a common choice is daily at 3 AM, keeping 7 backups.
Can I restore from a cloud backup on a new device?
Yes. During the Home Assistant installation, you can choose “Restore from backup” and provide the backup file. For Google Drive, you can download the .tar file from Drive and upload it during setup. For network storage, you can connect to the same WebDAV share and select the backup.
What happens if my free cloud storage fills up?
Home Assistant will fail to upload new backups. The add-on may show an error. You can delete old backups from the cloud or increase your storage (e.g., by cleaning up other files in your Drive). Some add-ons automatically delete old backups from the cloud to stay within a limit.