v5.0_Backup and Restore

POST system/files/command/backup

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

POST

Back’s up system files, creating an asynchronous task.

Resource URL

https://{{ip_address}}:{{port}}/api/{{version}}/system/files/command/backup

Example Request

POST 

  1. https://192.168.10.53/api/5.0/system/files/command/backup

Response

{ "data": { "uuid": "f3341f06-6238-4cc6-9f02-eceb2b478a80", "created": 1644427178999, "type": "Db Backup", "state": "Running", "progress": 0, "attributes": {}, "result": null }, "metadata": {} }

 


 

GET system/files

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

GET

Returns all the available system files after successful backup.

Resource URL

https://{{ip_address}}:{{port}}/api/{{version}}/system/files

Example Request

GET

  1. https://192.168.10.53/api/5.0/system/files

Response

{ "data": [ { "uuid": "2e95e36a-3976-55ab-be6f-ac83e977564a", "label": "220323_123131_22031701_backup", "ext": ".db", "type": "DB Backup", "size": 222953, "created": "2022-03-23T12:31:31.822Z", "modified": "2022-03-23T12:31:32.109Z", "version": "22.03.17.01", "postgres_client": 14.2, "postgres_server": 14.1 } ], "metadata": { "total_items": 1, "items_per_page": 1, "total_pages": 1, "current_page": 1, "item_count": 1 } }

 


 

POST system/files/command/restore/{uuid}

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

POST

Restores system files that are backed up. Please use the uuid of the system files obtained from GET system/files.

Resource URL

https://{{ip_address}}:{{port}}/api/{{version}}/system/files/command/restore/{uuid}

Parameters

Parameter

Data Type

Description

uuid
(required)

string

The UUID of the desired system file.

Example Request

POST 

  1. https://192.168.10.53/api/5.0/system/files/command/restore/4141158b-b46a-5898-b125-d97f283ca8bf

Response

{ "data": { "uuid": "bbf7811d-ffd9-42bc-b3e6-f776259498de", "created": 1647265209073, "type": "Db Restore", "state": "Running", "progress": 0, "attributes": { "file": "827ff48c-c242-5cb4-aa56-94ff66026be6" }, "result": null }, "metadata": {} }

 


 

GET system/files/download/{uuid}

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

GET

Downloads the system file in binary format.

Resource URL

https://{{ip_address}}:{{port}}/api/{{version}}/system/files/download/{uuid}

Parameters

Parameter

Data Type

Description

uuid
(required)

string

The UUID of the desired system file.

Example Request

GET

  1. https://192.168.10.53/api/5.0/system/files/download/4141158b-b46a-5898-b125-d97f283ca8bf

Response

System file in a binary format.

 


 

DELETE system/files/{uuid}

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

DELETE

Deletes the specific system file.

Resource URL

https://{{ip_address}}:{{port}}/api/{{version}}/system/files/{uuid}

Parameters

Parameter

Data Type

Description

uuid
(required)

string

The UUID of the desired system file.

Example Request

DELETE

  1. https://192.168.10.53/api/5.0/system/files/dcb2267b-0595-5bab-a9af-37d81f85f0d8

Response