Home Assistant can send scheduled backups directly to an SFTP server. Your Pi, Home Assistant Green or home server still runs the automations. Only the backup travels off-site. You need a writable folder on the remote server and somewhere separate to keep the key that unlocks the archive.
If you just updated to Home Assistant 2026.12, you may see a familiar destination under a new name. On 2 December, Home Assistant Cloud became Home Assistant Link, and its cloud backups became off-site backups in the interface. Existing subscriptions and backups carry on working. The SFTP option below lets you use storage you choose, with or without a Link subscription. December release notes
Prepare a folder you can reach if Home Assistant is offline
Start on a laptop. Sign in to the remote server with an SFTP client and the account you plan to give Home Assistant. Create a folder for this installation. Open it, upload a small file, download it and delete the test file. That checks the permissions you will need for both recovery and clearing old backups.
On a HYEHOST Storage Box, use the service hostname and SFTP details shown in the panel. A sub-account with access to one backup directory keeps the rest of your files separate. Look at the directory path after signing in as that sub-account. Its starting directory can look different from the one you see as the main account.
Add the SFTP Storage integration
- Open Settings → Devices & services → Add integration. Search for SFTP Storage.
- Enter the remote hostname, the port supplied by your storage provider and the backup account’s username. Use the account password or a dedicated SSH private key. The integration accepts a key file without a passphrase. If you use a key, authorise its public half on the server first.
- Enter the existing remote folder exactly as it appeared in your SFTP client and finish setup. Next, enable this destination in the backup schedule.
You don’t need to open an inbound port on your home router. Home Assistant initiates the connection to the remote server. SFTP Storage settings
Choose what to save and keep the encryption key
Go to Settings → System → Backups. On first use, choose Set up backups and download the emergency kit. If backups are already running, use the Encryption key card to save the kit and Configure backup settings to edit the schedule.
Contents
Include your settings and the history you want to recover. On Home Assistant OS, check which apps and folders you selected. If Recorder writes to a separate database server, give that database its own backup job.
Locations
In the custom setup, enable SFTP under Locations. Open its cog and turn encryption on. A local copy is also handy for undoing a bad change while the home server is healthy.
Schedule and retention
Pick a time when the SFTP server will be reachable and set how many copies to keep. A daily backup with seven remote copies gives you a week of restore points. That matters if the automation that broke on Monday only runs on Sundays.
Keep the emergency kit where you can retrieve it during an outage, such as a password manager accessible from another device. The SFTP password gets you the file. The key in the kit lets Home Assistant read it. If you change the encryption key, keep the old kit for as long as you retain archives made with it. How the emergency kit works
Check the remote file after the first run
Save the settings and start the first backup. Once the upload finishes, open the backup details and check that SFTP appears as a completed location. Then reconnect from your laptop and look for a new .tar file in the expected folder. Download that file directly over SFTP for the restore test. An ordinary download from the Home Assistant backups page can decrypt the archive on the way to your browser.
Check again after the first scheduled run. Compare the remote file timestamp with the time you chose. For ongoing checks, Home Assistant exposes the time of the last successful automatic backup and a failure event you can use to send yourself a notification. Official backup failure notification example
To plan storage, measure a real archive. At 600 MB per run, seven copies use roughly 4.2 GB before manual backups or growth. To estimate how long recovery will take, time a download over the connection you would actually use.
Restore the SFTP copy on a spare Home Assistant OS instance
Use a spare device or VM you can overwrite. Give it more free space than the source system’s used disk space, which can be much larger than the archive. Keep USB radios on the live system. On the test network, allow the Home Assistant downloads needed for recovery while blocking connections to your live devices, MQTT broker and cloud integrations. Otherwise a restored automation could start controlling the same home as the original.
- Start the fresh instance. On its welcome screen choose Upload backup and select the encrypted archive you downloaded from SFTP.
- Choose the parts to restore, enter the matching key from your emergency kit and start the restore. Leave it to finish and sign in using the credentials that were valid when the backup was taken.
- Open a dashboard you recognise. Check the trigger and actions of one automation without running it. If you backed up history, look for a known reading from before the backup. A sensor with its radio unplugged can show as unavailable during this test.
- Record which archive and kit worked, how long recovery took and anything missing. Shut down the test instance while it is still isolated.
If you build local Home Assistant apps, check for one of your own app files on the restored system. The December release fixed how the local apps folder is handled when a backup is encrypted or decrypted. Make a fresh backup after updating so your test covers that fix. Home Assistant’s backup fix
Keep the result somewhere you can read without Home Assistant. Even a short note such as “dashboard and heating schedule restored, external Recorder database still needed” tells you what the next recovery step will be. Home Assistant restore instructions
When the backup or restore fails
SFTP login works. Why does the upload fail?
Reconnect as the backup user and upload a test file into the exact target folder. Check the account quota, write permission and path. Creating an integration and selecting it under Locations are separate steps.
Why is my dashboard back but the Energy history is missing?
Check whether history was selected and where Recorder stored it. A PostgreSQL or MariaDB database hosted on a separate machine needs its own restore. Recovering the Home Assistant settings brings back the connection details.
What if the emergency kit key is rejected?
Check when the archive was created and whether you changed the key afterwards. If the original instance still works and uses that key, you can download the kit again. Once both the matching key and the original installation are gone, the storage provider cannot unlock the file. Key recovery options

