mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-08 01:46:29 +00:00
API: Mention compressed parameter for performing backups (#1188)
Related to: https://github.com/home-assistant/supervisor/pull/3378
This commit is contained in:
parent
47ed55f216
commit
4d2e55f16a
@ -711,6 +711,7 @@ Return a list of [Backups](api/supervisor/models.md#backup)
|
||||
"type": "partial",
|
||||
"size": 44,
|
||||
"protected": true,
|
||||
"compressed": true,
|
||||
"content": {
|
||||
"homeassistant": true,
|
||||
"addons": ["awesome_addon"],
|
||||
@ -729,10 +730,11 @@ Create a full backup.
|
||||
|
||||
**Payload:**
|
||||
|
||||
| key | type | optional | description |
|
||||
| -------- | ------ | -------- | ------------------------------------------ |
|
||||
| name | string | True | The name you want to give the backup |
|
||||
| password | string | True | The password you want to give the backup |
|
||||
| key | type | optional | description |
|
||||
| ---------- | ------- | -------- | -----------------------------------------|
|
||||
| name | string | True | The name you want to give the backup |
|
||||
| password | string | True | The password you want to give the backup |
|
||||
| compressed | boolean | True | `false` to create uncompressed backups |
|
||||
|
||||
**Example response:**
|
||||
|
||||
@ -764,12 +766,13 @@ Create a partial backup.
|
||||
|
||||
**Payload:**
|
||||
|
||||
| key | type | optional | description |
|
||||
| -------- | ------ | -------- | ------------------------------------------- |
|
||||
| name | string | True | The name you want to give the backup |
|
||||
| password | string | True | The password you want to give the backup |
|
||||
| addons | list | True | A list of strings representing add-on slugs |
|
||||
| folders | list | True | A list of strings representing directories |
|
||||
| key | type | optional | description |
|
||||
| ---------- | ------- | -------- | ------------------------------------------- |
|
||||
| name | string | True | The name you want to give the backup |
|
||||
| password | string | True | The password you want to give the backup |
|
||||
| addons | list | True | A list of strings representing add-on slugs |
|
||||
| folders | list | True | A list of strings representing directories |
|
||||
| compressed | boolean | True | `false` to create uncompressed backups |
|
||||
|
||||
**You need to supply at least one key in the payload.**
|
||||
|
||||
|
@ -175,7 +175,8 @@ These models are describing objects that are getting returned from the superviso
|
||||
| name | string | The name given to the backup |
|
||||
| type | string | The type of backup (full, partial) |
|
||||
| protected | boolean | `true` if the backup is password protected |
|
||||
| content | dictionary | A dictionary describing the content of the backup |
|
||||
| content | dictionary | A dictionary describing the content of the backup |
|
||||
| compressed | boolean | `true` if the backup is saved in a compressed archive |
|
||||
|
||||
### Backup -> content
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user