GPUdb C++ API  Version 7.2.3.0
gpudb::CreateBackupRequest Struct Reference

A set of parameters for GPUdb::createBackup. More...

#include <gpudb/protocol/create_backup.h>

Public Member Functions

 CreateBackupRequest ()
 Constructs a CreateBackupRequest object with default parameters. More...
 
 CreateBackupRequest (const std::string &backupName_, const std::string &backupType_, const std::map< std::string, std::string > &backupObjectsMap_, const std::string &datasinkName_, const std::map< std::string, std::string > &options_)
 Constructs a CreateBackupRequest object with the specified parameters. More...
 

Public Attributes

std::string backupName
 Name for this backup. More...
 
std::string backupType
 Type of snapshot to create. More...
 
std::map< std::string, std::string > backupObjectsMap
 Map of objects to be captured in the backup; must be specified when creating a full snapshot and left unspecified when creating an incremental or differential snapshot. More...
 
std::string datasinkName
 Data sink through which the backup will be stored. More...
 
std::map< std::string, std::string > options
 Optional parameters. More...
 

Detailed Description

A set of parameters for GPUdb::createBackup.

Creates a database backup, containing a snapshot of existing objects, at the remote file store accessible via the data sink specified by datasinkName.

Definition at line 23 of file create_backup.h.

Constructor & Destructor Documentation

◆ CreateBackupRequest() [1/2]

gpudb::CreateBackupRequest::CreateBackupRequest ( )
inline

Constructs a CreateBackupRequest object with default parameters.

Definition at line 28 of file create_backup.h.

◆ CreateBackupRequest() [2/2]

gpudb::CreateBackupRequest::CreateBackupRequest ( const std::string &  backupName_,
const std::string &  backupType_,
const std::map< std::string, std::string > &  backupObjectsMap_,
const std::string &  datasinkName_,
const std::map< std::string, std::string > &  options_ 
)
inline

Constructs a CreateBackupRequest object with the specified parameters.

Parameters
[in]backupName_Name for this backup. If the backup already exists, only an incremental or differential backup can be made, unless recreate is set to true.
[in]backupType_Type of snapshot to create. Supported values:
[in]backupObjectsMap_Map of objects to be captured in the backup; must be specified when creating a full snapshot and left unspecified when creating an incremental or differential snapshot.
[in]datasinkName_Data sink through which the backup will be stored.
[in]options_Optional parameters. The default value is an empty map.

Definition at line 252 of file create_backup.h.

Member Data Documentation

◆ backupName

std::string gpudb::CreateBackupRequest::backupName

Name for this backup.

If the backup already exists, only an incremental or differential backup can be made, unless recreate is set to true.

Definition at line 267 of file create_backup.h.

◆ backupObjectsMap

std::map<std::string, std::string> gpudb::CreateBackupRequest::backupObjectsMap

Map of objects to be captured in the backup; must be specified when creating a full snapshot and left unspecified when creating an incremental or differential snapshot.

Definition at line 344 of file create_backup.h.

◆ backupType

std::string gpudb::CreateBackupRequest::backupType

Type of snapshot to create.

Supported values:

Definition at line 283 of file create_backup.h.

◆ datasinkName

std::string gpudb::CreateBackupRequest::datasinkName

Data sink through which the backup will be stored.

Definition at line 349 of file create_backup.h.

◆ options

std::map<std::string, std::string> gpudb::CreateBackupRequest::options

Optional parameters.

The default value is an empty map.

Definition at line 420 of file create_backup.h.


The documentation for this struct was generated from the following file: