List Backups
This topic describes how to list all backups for a given database.
Prerequisites
There are no prerequisites for this procedure.
Procedure
This procedure can be carried out using the Administration API.
The examples in this procedure are written using Bash on a Linux terminal. You can also use other interfaces and languages to execute the curl commands.
Placeholder values are styled as Bash variables, starting with the dollar sign ($) and using UPPERCASE characters. Replace the placeholders with your own values before executing the curl command.
-
Get information about the database by sending a
GET
request to the/api/v1/databases
endpoint. For example:curl -k -X "GET" \
"https://$EXASOL_IP/api/v1/databases" \
-H "accept: application/json" \
-H "Authorization: Basic $AUTH_TOKEN"The response will include the following:
- Database ID
- Database name
- Database version
- Provider type
- Number of clusters in the database
- Number of clusters running
- Volumes
Additional database parameters and hardware details may be included in the response depending on the configuration and platform.
-
To get information about the existing archive volumes for the database, send a
GET
request to the/api/v1/databases/DATABASE_ID/volumes
endpoint. For example: -
To get information about all existing backups for the current database, send a
GET
request to the/api/v1/databases/DATABASE_ID/backups/
endpoint. For example: -
To also see backups taken on foreign databases, you must use the ConfD job db_backup_list with the show_foreign parameter set to True.