7 using System.Collections.Generic;
20 public class CreateBackupRequest : KineticaData
25 public struct BackupType
37 public const string FULL =
"full";
45 public struct BackupObjectsMap
50 public const string ALL =
"all";
56 public const string TABLE =
"table";
64 public const string CONTEXT =
"context";
68 public const string DATASINK =
"datasink";
82 public const string MONITOR =
"monitor";
88 public const string USER =
"user";
93 public const string ROLE =
"role";
113 public const string TRUE =
"true";
114 public const string FALSE =
"false";
120 public struct Options
123 public const string COMMENT =
"comment";
138 public const string CHECKSUM =
"checksum";
140 public const string TRUE =
"true";
141 public const string FALSE =
"false";
160 public const string DDL_ONLY =
"ddl_only";
197 public const string RECREATE =
"recreate";
212 public const string DRY_RUN =
"dry_run";
340 public IDictionary<string, string>
backup_objects_map {
get;
set; } =
new Dictionary<string, string>();
450 public IDictionary<string, string>
options {
get;
set; } =
new Dictionary<string, string>();
690 IDictionary<string, string>
options =
null)
703 public class CreateBackupResponse : KineticaData
728 public IDictionary<string, string>
info {
get;
set; } =
new Dictionary<string, string>();
const string STORED_PROCEDURE
SQL Procedure
const string FULL
Snapshot of the given database objects and data.
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
Snapshot of changes in the database objects & data since the last full snapshot.
const string MONITOR
Table Monitor (Stream)
const string CHECKSUM
Calculate checksum for backup files.
const string INCREMENTAL
Snapshot of changes in the database objects & data since the last snapshot of any kind.
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