7 using System.Collections.Generic;
16 public class CreateBackupRequest : KineticaData
21 public struct BackupType
25 public const string FULL =
"full";
33 public struct BackupObjectsMap
38 public const string ALL =
"all";
41 public const string TABLE =
"table";
47 public const string CONTEXT =
"context";
50 public const string DATASINK =
"datasink";
59 public const string MONITOR =
"monitor";
63 public const string USER =
"user";
67 public const string ROLE =
"role";
86 public const string FALSE =
"false";
87 public const string TRUE =
"true";
96 public const string COMMENT =
"comment";
110 public const string CHECKSUM =
"checksum";
112 public const string FALSE =
"false";
113 public const string TRUE =
"true";
127 public const string DDL_ONLY =
"ddl_only";
162 public const string RECREATE =
"recreate";
176 public const string DRY_RUN =
"dry_run";
278 public IDictionary<string, string>
backup_objects_map {
get;
set; } =
new Dictionary<string, string>();
380 public IDictionary<string, string>
options {
get;
set; } =
new Dictionary<string, string>();
588 IDictionary<string, string>
options =
null)
601 public class CreateBackupResponse : KineticaData
625 public IDictionary<string, string>
info {
get;
set; } =
new Dictionary<string, string>();
const string STORED_PROCEDURE
SQL Procedure
long copied_records
Total number of records in all files copied for this snapshot
const string TABLE
Database Table
long total_number_of_records
Total number of records that can be restored from this snapshot
const string DATASINK
Data Sink
string backup_name
Name for this backup object.
const string COMMENT
Comments to store with this backup
IDictionary< string, string > options
Optional parameters.
long copied_files
Total number of files copied for this snapshot
const string CONFIGURATION
If TRUE, backup the database configuration file.
const string ROLE
Role, role members (roles or users, recursively) and associated permissions
IDictionary< string, string > info
Additional information.
CreateBackupRequest()
Constructs a CreateBackupRequest object with default parameters.
const string DIFFERENTIAL
const string MONITOR
Table Monitor (Stream)
const string CHECKSUM
Calculate checksum for backup files.
long copied_bytes
Total size of all files copied for this snapshot
const string CONTEXT
Context
const string MAX_INCREMENTAL_BACKUPS_TO_KEEP
Maximum number of incremental backups to keep.
string backup_name
Value of backup_name.
IDictionary< string, string > backup_objects_map
Map of objects to be captured in the backup.
const string CREDENTIAL
Credential
const string DRY_RUN
Dry run of backup.
string backup_type
Type of backup to create.
const string ALL
All object types in a schema (excludes permissions, system configuration, host secret key,...
CreateBackupRequest(string backup_name, string backup_type, IDictionary< string, string > backup_objects_map, string datasink_name, IDictionary< string, string > options=null)
Constructs a CreateBackupRequest object with the specified parameters.
const string DATASOURCE
Data Source
string datasink_name
Datasink where backup will be stored.
const string RECREATE
Replace the existing backup object with a new full backup if it already exists.
const string DELETE_INTERMEDIATE_BACKUPS
When the backup type is differential, delete any intermediate incremental or differential backups.
const string DDL_ONLY
Only save the DDL, do not backup table data.
const string USER
User (internal and external) and associated permissions