/alter/backup

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

Alters an existing database backup containing a current snaphot of existing objects.

Input Parameter Description

NameTypeDescription
backup_namestringName of the backup object to be altered
actionstring

Operation to be applied

Supported ValuesDescription
checksumCalculate checksum for backup files
ddl_onlyOnly save the DDL, do not backup table data
max_incremental_backups_to_keepMaximum number of incremental backups to keep
mergeMerges all backup instances and creates a single full backup
purgePurges backup instances
valuestringAction specific argument.
datasink_namestringDatasink where backup will be stored.
optionsmap of string to strings

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

Supported Parameters (keys)Parameter Description
commentComments to store with the new backup instance
dry_run

Dry run of backup changes The default value is false. The supported values are:

  • false
  • true

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'alter_backup_response' or 'none' in case of an error
dataStringEmpty string
data_strJSON or String

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

NameTypeDescription
backup_namestringValue of input parameter backup_name.
backup_idlongBackup ID.
total_byteslongTotal size of files affected by alter operation
total_recordslongTotal number of records affected alter operation
infomap of string to stringsAdditional information.

Empty string in case of an error.