You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| location | string or null | True | Name of a backup mount or `null` for /backup|
852
+
| location |list, string or null | True | Name of a backup mount or `null` for /backup. Use a list of backup mounts or `null` to make backup in multiple places|
849
853
| homeassistant_exclude_database | boolean | True | Exclude the Home Assistant database file from backup |
850
854
| background | boolean | True | Return `job_id` immediately, do not wait for backup to complete. Clients must check job for status and slug. |
855
+
| extra | dictionary | True | Extra metadata to store with the backup for client-specific use cases |
851
856
852
857
**Example response:**
853
858
854
859
```json
855
860
{
856
-
"slug": "skuwe823"
861
+
"slug": "skuwe823",
862
+
"job_id": "abc123"
857
863
}
858
864
```
859
865
866
+
:::note
867
+
868
+
Error responses from this API may also include a `job_id` if the message alone cannot accurately describe what happened.
869
+
Callers should direct users to review the job or supervisor logs to get an understanding of what occurred.
| location | Yes | The name of the backup mount to upload to. Use empty string for `/backup`. Provide multiple locations to upload to multiple places |
884
+
885
+
*Examples*
886
+
887
+
-`?location=` - Upload to `/backup`
888
+
-`?location=MountedBackups` - Upload to backup mount named `MountedBackup`
889
+
-`?location=&location=MountedBackups` - Upload to both of the above places
| name | string | True | The name you want to give the backup |
893
918
| password | string | True | The password you want to give the backup |
894
-
| homeassistant | boolean |True | Add home assistant core settings to the backup |
895
-
| addons | list | True | A list of strings representing add-on slugs|
896
-
| folders | list |True | A list of strings representing directories |
919
+
| homeassistant | boolean |Content| Add home assistant core settings to the backup |
920
+
| addons | list or `ALL`| Content | A list of strings representing add-on slugs. Provide the string `ALL` instead of a list to include all currently installed add-ons|
921
+
| folders | list |Content| A list of strings representing directories |
| location | string or null | True | Name of a backup mount or `null` for /backup|
923
+
| location |list, string or null | True | Name of a backup mount or `null` for /backup. Use a list of backup mounts or `null` to make backup in multiple places|
899
924
| homeassistant_exclude_database | boolean | True | Exclude the Home Assistant database file from backup |
900
925
| background | boolean | True | Return `job_id` immediately, do not wait for backup to complete. Clients must check job for status and slug. |
926
+
| extra | dictionary | True | Extra metadata to store with the backup for client-specific use cases |
901
927
902
-
**You need to supply at least one key in the payload.**
928
+
**You need to supply at least one key of the ones marked "Content" in the optional column in the payload.**
903
929
904
930
**Example response:**
905
931
@@ -968,6 +994,17 @@ End a freeze initiated by `/backups/freeze` and resume normal behavior in Home A
| location | No | Specify which location to download the backup from of the ones it exists in. Use empty string for `/backup` (equivalent to `null` in the `locations` field of [Backup](api/supervisor/models.md#backup)) |
1002
+
1003
+
*Examples*
1004
+
1005
+
-`?location=` - Download from `/backup`
1006
+
-`?location=MountedBackups` - Download from backup mount named `MountedBackup`
| location | list | True | Specify which locations to remove the backup from instead of removing it from all locations. See `locations` field of [Backup](api/supervisor/models.md#backup)|
| password | string | True | The password for the backup if any |
1037
+
| background | boolean | True | Return `job_id` immediately, do not wait for restore to complete. Clients must check job for status. |
1038
+
| location | string or null | True | Specify which location to restore the backup from of the ones it exists in. See `locations` field of [Backup](api/supervisor/models.md#backup)|
995
1039
996
1040
**Example response:**
997
1041
@@ -1016,15 +1060,16 @@ Does a partial restore of the backup with the given slug.
| homeassistant | boolean | Content |`true` if Home Assistant should be restored |
1066
+
| addons | list | Content | A list of add-on slugs that should be restored |
1067
+
| folders | list | Content | A list of directories that should be restored |
1068
+
| password | string | True | The password for the backup if any |
1069
+
| background | boolean | True | Return `job_id` immediately, do not wait for restore to complete. Clients must check job for status. |
1070
+
| location | string or null | True | Specify which location to restore the backup from of the ones it exists in. See `locations` field of [Backup](api/supervisor/models.md#backup)|
1026
1071
1027
-
**You need to supply at least one key in the payload.**
1072
+
**You need to supply at least one key of the ones marked "Content" in the optional column in the payload.**
1028
1073
1029
1074
**Example response:**
1030
1075
@@ -2105,7 +2150,8 @@ Returns information about mounts configured in Supervisor
0 commit comments