# Backup and Restore Home Assistant

You have two ways to backup and restore Home Assistant:

## 1. Backup and Restore HA in iSG

### 1.1. Backup HA in iSG

Go to **Add-Ons > Home Assistant Server > Backup**.

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2Fz0fyu8ZskI3dZeymDT6Z%2F8-Addon-HA-Backup_%E5%89%AF%E6%9C%AC.jpg?alt=media&#x26;token=eabd3ad6-2af0-4dc9-8c1a-e97ca1e835cf" alt=""><figcaption></figcaption></figure>

After the backup is complete, click **Restore** to confirm that iSG has created a backup file for Home Assistant.

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2FWwsMQ8gzGqhwhyplFc7C%2F8-Addon-HA-Restore-SelectFile.png?alt=media&#x26;token=b0ce0967-b0dc-4036-bfef-a4122f600c9a" alt=""><figcaption></figcaption></figure>

### 1.2. Restore HA in iSG

Go to **Add-Ons > Home Assistant Server > Restore**.

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2FMPFJJyo4IqOLsIeLvviB%2F8-Addon-HA-Restore_%E5%89%AF%E6%9C%AC.jpg?alt=media&#x26;token=cdc2259f-0b59-4407-a2e6-1874be1408e8" alt=""><figcaption></figcaption></figure>

Select the backup file from the default backup folder, or click **Select File** to browse and choose one from an external drive.

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2FsbeywrOXBFVDFTlis5St%2F8-Addon-HA-Restore-SelectFile.png?alt=media&#x26;token=22fc90f3-b577-4c0d-8eeb-3f1ff99a73d4" alt=""><figcaption></figcaption></figure>

Click **Start restoration** to restore from the selected backup file.

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2FHHdtecynIAtzpojwomih%2F8-Addon-HA-Restoring.png?alt=media&#x26;token=e6566859-4d70-40f1-802f-b98184dc2dcb" alt=""><figcaption></figcaption></figure>

iSG will display *“Restoration is successful”* and then automatically exit the restoration page.

## 2. Backup and Restore HA in Home Assistant

### 2.1. Backup HA in Home Assistant

1\) Connect your computer to the same network as the iSG. Open a browser and enter: **iSG IP:8123**. Log in to Home Assistant and go to **Settings > System**.

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2FIjETrk0E42ukjg6bHcqP%2Fimage.png?alt=media&#x26;token=d1babc16-a6d8-4b33-9b5e-fb48dfb1564e" alt=""><figcaption></figcaption></figure>

2\) Click **Backups**

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2F2y2hKKvPanmcURBuuGcJ%2Fimage.png?alt=media&#x26;token=a4120896-37d3-46fc-8674-a3130a085b4a" alt=""><figcaption></figcaption></figure>

3\) Click **BACKUP NOW**.&#x20;

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2FjgMtkNN5oXpxKaVCkP9H%2Fimage.png?alt=media&#x26;token=c96b5a20-bad7-4ed0-b67c-ad851975c382" alt=""><figcaption></figcaption></figure>

If this is your first time using the backup function, you will be prompted to create and save an encryption key. Be sure to keep it in a safe place, as you may need it in the future.

<div align="left"><figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2FlZ0d2rxJgddPGy6Blz2a%2FBackup-2-2.jpg?alt=media&#x26;token=5c799c11-c3d9-4525-814a-47284f9d71b7" alt="" width="563"><figcaption></figcaption></figure></div>

After the encryption key is created, click **BACKUP** again and choose an option to backup (choose Automatic backup for a full backup).&#x20;

<div align="left"><figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2FJ7ZoJ7ucd5msHQxaUgvZ%2FBackup-3.png?alt=media&#x26;token=6c5aec6e-f6ae-4ac4-815d-9dd4eb8fbcf0" alt="" width="280"><figcaption></figcaption></figure></div>

It will show "Creating backup" on top. Wait a few minutes until the process is complete. Once the backup is successful, it will show "Backed up" on top.

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2F8DL0tqwQZru06t5Tv452%2FBackup-4.png?alt=media&#x26;token=9950a5a6-4d46-4b93-8f91-ec70f37a7bd9" alt=""><figcaption></figcaption></figure>

Click Automatic backups to view the backup files.

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2FjVR8tYAtjP4MfVPkuBCu%2FBackup-6.png?alt=media&#x26;token=2c44a2f2-3540-4ff3-af89-4e00d271a272" alt=""><figcaption></figcaption></figure>

You can click Download to download the backup file to your drive for safekeeping.

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2FiTQeVXfFDTNiQvaGSAWm%2FBackup-7.png?alt=media&#x26;token=d10adedb-8dc1-4103-a375-f2a78752606b" alt=""><figcaption></figcaption></figure>

Click the file to download it, save it to your computer, and then copy it to a USB drive for safekeeping.

### 2.2. Restore HA in Home Assistant

Click the backup file, select **All Items**, and then click **RESTORE** to restore your Home Assistant to the backed-up state.

<figure><img src="https://1561436000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCtFemS511EXKjNnjKqg%2Fuploads%2FQl119P4CKyov37OCCqpo%2FHA-Backup-8.png?alt=media&#x26;token=b397705a-ee51-4b19-b779-0ff95d9a42fd" alt=""><figcaption></figcaption></figure>
