List backups
Please note: This endpoint will be deprecated soon. It is replaced in favor of a new endpoint: https://developers.ploi.io/844-database/2126-list-database-backups
List all the backups for the selected database
GET api/servers/{server}/databases/{database}/backups
Example request:
curl -X GET "https://ploi.io/api/servers/{server}/databases/{database}/backups" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response:
HTTP/1.1 200 OK
Content-Type: application/json
{
"data": [
{
"id": 1,
"type": "dropbox",
"type_human": "Dropbox",
"path": null,
"locations": null,
"interval": 10,
"table_exclusions": null,
"active": false,
"last_backup_at": null,
"created_at": "2019-08-07 12:32:53"
}
],
"links": {
"first": "https://ploi.io/api/servers/1/databases/1/backups?page=1",
"last": "https://ploi.io/api/servers/1/databases/1/backups?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://ploi.io/api/servers/1/databases/1/backups",
"per_page": 15,
"to": 1,
"total": 1
}
}