Skip to content

Backup and Restore

Northern Man edited this page Jun 30, 2023 · 15 revisions

This article will explain how to backup and restore your Homebridge instance.

A Homebridge backup generated using the Homebridge UI contains the entire contents of your Homebridge storage directory, which includes your Homebridge config, cached accessories, HomeKit pairings, plugin information, and Homebridge UI user accounts.

The backups can be used to rollback your existing system, or migrate to a new server.

Backup archives are cross-platform compatible, for example, a backup archive generated on Homebridge running on Windows 10 can be restored to Homebridge running on a Raspberry Pi, or vice versa.

Backup

  1. Login to the Homebridge UI and from the drop down menu in the upper-right-corner select Backup / Restore.
  2. Clicking the Download Backup Archive button

This will generate and download a .tar.gz file containing the entire contents of your Homebridge storage folder, including your config.json, a list of installed plugins, cached accessories, and HomeKit pairing information.

homebridge-ui-backup

Restore

You can restore a previously generated backup archive using the Homebridge UI.

⚠️ If you are using this tool to migrate from one host to another, shutdown or stop the old host before restoring!

  1. Ensure you have setup Homebridge using one the methods described in the Homebridge wiki.
  2. Login to the Homebridge UI and from the drop down menu in the upper-right-corner select Backup / Restore.
  3. Click Browse and select the backup archive you previously generated.
  4. Click Restore Backup.

Your Homebridge backup will now be restored and any missing plugins will be installed. Once the operation has completed click Restart Homebridge.

Connection Issues After Restoring

In some cases, after doing a restore, you may need to Reset Homebridge and re-add the bridge in the Home app.

Backup and Restore without the Homebridge UI

To make a backup without the Homebridge UI, you can archive or make a copy of the Homebridge storage directory (the one that contains your config.json file). To restore, just extract or copy the contents back to the Homebridge storage directory. You will need to manually reinstall any plugins.

Clone this wiki locally