/show/backup

URL: http://<db.host>:<db.port>/show/backup

Shows information about one or more backups accessible via the data source specified by input parameter datasource_name.

Input Parameter Description

NameTypeDescription
backup_namestringName of the backup. An empty string or '*' will show all existing backups. Any text followed by a '*' will show backups whose name starts with that text. The default value is ''.
datasource_namestringData source through which the backup is accessible.
optionsmap of string to strings

Optional parameters. The default value is an empty map ( {} ).

Supported Parameters (keys)Parameter Description
backup_idID of the snapshot to show. Leave empty to show information from the most recent snapshot in the backup. The default value is ''.
show_contents

Show the contents of the backed-up snapshots. The default value is none.

Supported ValuesDescription
noneDon't show snapshot contents.
object_namesShow backed-up object names, and for tables, sizing detail.
object_filesShow backed-up object names, and for tables, sizing detail and associated files.
no_error_if_not_exists

Whether or not to suppress the error if the specified backup does not exist. The default value is false. The supported values are:

  • true
  • false

Output Parameter Description

The GPUdb server embeds the endpoint response inside a standard response structure which contains status information and the actual response to the query. Here is a description of the various fields of the wrapper:

NameTypeDescription
statusString'OK' or 'ERROR'
messageStringEmpty if success or an error message
data_typeString'show_backup_response' or 'none' in case of an error
dataStringEmpty string
data_strJSON or String

This embedded JSON represents the result of the /show/backup endpoint:

NameTypeDescription
backup_namestringValue of input parameter backup_name.
backup_descriptionarray of maps of string to stringsDetails about the overall backup(s).
backup_idsarray of maps of string to stringsDetails about the individual snapshots contained within the backup(s).
backup_contentsarray of maps of string to stringsWhen show_contents is object_names, the names of the backed-up objects as well as sizing detail of any backed-up tables; when object_files, the names of the backed-up objects as well as sizing detail and associated data files of any backed-up tables.
deleted_backup_idsarray of maps of string to stringsIDs of any snapshots that have been deleted from the containing backup(s).
infomap of string to stringsAdditional information.

Empty string in case of an error.