Skip to content

Commit

Permalink
API: Mention compressed parameter for performing backups (#1188)
Browse files Browse the repository at this point in the history
  • Loading branch information
3v1n0 committed Feb 3, 2022
1 parent 47ed55f commit 4d2e55f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
23 changes: 13 additions & 10 deletions docs/api/supervisor/endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand All @@ -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:**

Expand Down Expand Up @@ -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.**

Expand Down
3 changes: 2 additions & 1 deletion docs/api/supervisor/models.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4d2e55f

Please sign in to comment.