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 | 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 |
864
+
| location | listor string| True | Name of a backup mount or `.local` for `/backup`. Use a list to make the backup in multiple places |
853
865
| homeassistant_exclude_database | boolean | True | Exclude the Home Assistant database file from backup |
854
866
| background | boolean | True | Return `job_id` immediately, do not wait for backup to complete. Clients must check job for status and slug. |
855
867
| extra | dictionary | True | Extra metadata to store with the backup for client-specific use cases |
868
+
| filename | string | True | The name for the backup file created |
| location | Yes | The name of the backup mount to upload to. Use empty string for `/backup`. Provide multiple locations to upload to multiple places |
896
+
| location | Yes | The name of the backup mount to upload to. Use `.local` for `/backup`. Provide multiple locations to upload to multiple places |
897
+
| filename | No | The name for the backup file created |
884
898
885
899
*Examples*
886
900
887
-
-`?location=` - Upload to `/backup`
901
+
-`?location=.local` - Upload to `/backup`
888
902
-`?location=MountedBackups` - Upload to backup mount named `MountedBackup`
889
-
-`?location=&location=MountedBackups` - Upload to both of the above places
903
+
-`?location=.local&location=MountedBackups` - Upload to both of the above places
904
+
-`?filename=my_backup.tar` - Create backup file in default backup location with name `my_backup.tar`
890
905
891
906
**Example response:**
892
907
@@ -920,10 +935,11 @@ Create a partial backup.
920
935
| 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
936
| folders | list | Content | A list of strings representing directories |
| 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 |
938
+
| location | listor string| True | Name of a backup mount or `.local` for /backup. Use a list to the make backup in multiple places |
924
939
| homeassistant_exclude_database | boolean | True | Exclude the Home Assistant database file from backup |
925
940
| background | boolean | True | Return `job_id` immediately, do not wait for backup to complete. Clients must check job for status and slug. |
926
941
| extra | dictionary | True | Extra metadata to store with the backup for client-specific use cases |
942
+
| filename | string | True | The name for the backup file created |
927
943
928
944
**You need to supply at least one key of the ones marked "Content" in the optional column in the payload.**
929
945
@@ -996,13 +1012,13 @@ Download the backup file with the given slug.
| 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))|
| 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)|
| location | list | True | Specify which locations to remove the backup from instead of removing it from all locations. See `location_attributes` field from `/backups/<backup>/info` for locations |
1025
1041
1026
1042
</ApiEndpoint>
1027
1043
@@ -1031,11 +1047,11 @@ Does a full restore of the backup with the given slug.
| 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)|
| password | string | True | The password for the backup if any |
1053
+
| background | boolean | True | Return `job_id` immediately, do not wait for restore to complete. Clients must check job for status. |
1054
+
| location | string | True | Specify which location to restore the backup from of the ones it exists in. See `location_attributes` field from `/backups/<backup>/info` for locations|
1039
1055
1040
1056
**Example response:**
1041
1057
@@ -1060,14 +1076,14 @@ 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)|
| homeassistant | boolean | Content |`true` if Home Assistant should be restored |
1082
+
| addons | list | Content | A list of add-on slugs that should be restored |
1083
+
| folders | list | Content | A list of directories that should be restored |
1084
+
| password | string | True | The password for the backup if any |
1085
+
| background | boolean | True | Return `job_id` immediately, do not wait for restore to complete. Clients must check job for status. |
1086
+
| location | string | True | Specify which location to restore the backup from of the ones it exists in. See `location_attributes` field from `/backups/<backup>/info` for locations|
1071
1087
1072
1088
**You need to supply at least one key of the ones marked "Content" in the optional column in the payload.**
0 commit comments