/alter/backup

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

Alters an existing database backup, accessible via the data sink specified by input parameter datasink_name.

Input Parameter Description

NameTypeDescription
backup_namestringName of the backup to be altered.
actionstring

Operation to be applied.

Supported ValuesDescription
checksumCalculate checksum for backed-up files.
ddl_onlyWhether or not to only save DDL and not back up table data, when taking future snapshots; set input parameter value to 'true' or 'false' for DDL only or DDL and table data, respectively.
max_incremental_backups_to_keepMaximum number of incremental snapshots to keep, when taking future snapshots; set input parameter value to the number of snapshots to keep.
mergeMerges all snapshots within a backup and creates a single full snapshot.
purgeDeletes a snapshot from a backup; set input parameter value to the snapshot ID to purge.
valuestringValue of the modification, depending on input parameter action.
datasink_namestringData sink 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
commentComments to store with the backup.
dry_run

Whether or not to perform a dry run of a backup alteration. 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'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_idlongID of the snapshot affected by the alter operation, if any.
total_byteslongTotal size of files affected by the alter operation.
total_number_of_recordslongTotal number of records affected by the alter operation.
infomap of string to stringsAdditional information.

Empty string in case of an error.