A set of string constants for the parameter RestoreBackupRequest.options. More…
Static Public Attributes | |
| const string | BACKUP_ID = “backup_id” |
| ID of the snapshot to restore. | |
| const string | CHECKSUM = “checksum” |
| Whether or not to verify checksums for backup files when restoring. | |
| const string | TRUE = “true” |
| A boolean constant for the RestoreBackupRequest.Options options. | |
| const string | FALSE = “false” |
| A boolean constant for the RestoreBackupRequest.Options options. | |
| const string | CASCADE_FOREIGN_KEYS = “cascade_foreign_keys” |
| Whether to drop live foreign-key-referencing tables that are not themselves part of the backup, when the table they reference is being replaced. | |
| const string | CREATE_SCHEMA_IF_NOT_EXIST = “create_schema_if_not_exist” |
| Behavior to apply when the schema containing any database object to restore does not already exist. | |
| const string | DDL_ONLY = “ddl_only” |
| Behavior to apply when restoring tables. | |
| const string | DRY_RUN = “dry_run” |
| Whether or not to perform a dry run of the restoration operation. | |
| const string | RESTORE_SUBSCRIPTIONS = “restore_subscriptions” |
| Behavior to apply when restoring datasource subscriptions on tables. | |
| const string | RESUME = “resume” |
| Resume subscriptions that were active when the backup was made. | |
| const string | PAUSE = “pause” |
| Pause subscriptions that were active when the backup was made. | |
| const string | CANCEL = “cancel” |
| Cancel active subscriptions. | |
| const string | REINGEST = “reingest” |
| Behavior to apply when restoring table data. | |
| const string | RENAMED_OBJECTS_SCHEMA = “renamed_objects_schema” |
| If the RESTORE_POLICY is RENAME, use this schema for relocated existing objects instead of the default generated one. | |
| const string | RESTORE_ALL_PERMISSIONS = “restore_all_permissions” |
| Whether or not all permissions of restored principals should be restored or scoped to the restored objects. | |
| const string | RESTORE_POLICY = “restore_policy” |
| Behavior to apply when any database object to restore already exists. | |
| const string | NONE = “none” |
| If an object to be restored already exists with the same name, abort and return error. | |
| const string | REPLACE = “replace” |
| If an object to be restored already exists with the same name, replace it with the backup version. | |
| const string | RENAME = “rename” |
| If an object to be restored already exists with the same name, move that existing one to the schema specified by RENAMED_OBJECTS_SCHEMA. | |
| const string | CLEAN = “clean” |
| Before restoring, drop every existing object of each object type being restored, whether or not that object is in the backup, including objects that are not persisted; object types not being restored are left untouched, and schemas are not dropped. | |
| const string | CLEAN_ALL = “clean_all” |
| Before restoring, drop every existing object in the database, regardless of which objects are being restored, including users, roles, non-system schemas and objects that are not persisted. | |
| const string | TARGET_SCHEMA_MAP = “target_schema_map” |
| Restore schema-based objects to alternate schema. | |
Detailed Description
A set of string constants for the parameter RestoreBackupRequest.options.
Optional parameters.
Definition at line 111 of file RestoreBackup.cs.
Member Data Documentation
◆ BACKUP_ID
| static |
ID of the snapshot to restore.
Leave empty to restore the most recent snapshot in the backup. The default value is ”.
Definition at line 116 of file RestoreBackup.cs.
◆ CANCEL
| static |
Cancel active subscriptions.
Definition at line 287 of file RestoreBackup.cs.
◆ CASCADE_FOREIGN_KEYS
| static |
Whether to drop live foreign-key-referencing tables that are not themselves part of the backup, when the table they reference is being replaced.
Only applies when RESTORE_POLICY is REPLACE. Supported values:
- TRUE: Drop any live table whose foreign key references a table being replaced, even when that table is not in the backup and therefore will not be restored.
- FALSE: Fail the restore of a table that is referenced by a live foreign-key table which is not part of the backup, rather than destroying data the backup cannot restore.
The default value is FALSE.
Definition at line 174 of file RestoreBackup.cs.
◆ CHECKSUM
| static |
Whether or not to verify checksums for backup files when restoring.
Supported values:
The default value is FALSE.
Definition at line 135 of file RestoreBackup.cs.
◆ CLEAN
| static |
Before restoring, drop every existing object of each object type being restored, whether or not that object is in the backup, including objects that are not persisted; object types not being restored are left untouched, and schemas are not dropped.
Unlike REPLACE, the clean is scoped by object type, not by name: restoring a single table drops every table in the database first, and the response warns when the objects to restore name specific objects of a type rather than all of them. Use DRY_RUN to list the objects that would be dropped. The restore is refused, before anything is dropped, if an object that would be dropped is still used by an object of a type that is not being restored, or cannot be dropped, such as a table locked by a backup in progress. As graphs, contexts, table monitors and stored procedures all depend on tables, restoring tables requires restoring each of those types of which any objects exist. A data sink generated for a monitor is dropped along with the monitor, and a home directory only along with its user. Objects created by other sessions while the restore runs are not dropped. If the restore fails after the clean, the dropped objects are not put back. System objects, the data source being restored from and its credential, the calling user and admin, with their default schemas, home directories and resource groups, and the calling user’s roles are never dropped, nor are the schemas holding any of these. Requires system administrator permission.
Definition at line 497 of file RestoreBackup.cs.
◆ CLEAN_ALL
| static |
Before restoring, drop every existing object in the database, regardless of which objects are being restored, including users, roles, non-system schemas and objects that are not persisted.
The restore is refused, before anything is dropped, if an object cannot be dropped, such as a table locked by a backup in progress, or is still used by an object the clean keeps, such as a resource group a system user is in; it also requires CREATE_SCHEMA_IF_NOT_EXIST to be TRUE. If the restore fails after the clean, the dropped objects are not put back. System objects, the data source being restored from and its credential, the calling user and admin, with their default schemas, home directories and resource groups, and the calling user’s roles are never dropped, nor are the schemas holding any of these. Requires system administrator permission.
Definition at line 515 of file RestoreBackup.cs.
◆ CREATE_SCHEMA_IF_NOT_EXIST
| static |
Behavior to apply when the schema containing any database object to restore does not already exist.
Supported values:
- TRUE: If the schema containing any restored object does not exist, create it automatically.
- FALSE: If the schema containing any restored object does not exist, return an error.
The default value is TRUE.
Definition at line 197 of file RestoreBackup.cs.
◆ DDL_ONLY
| static |
Behavior to apply when restoring tables.
Supported values:
The default value is FALSE.
Definition at line 218 of file RestoreBackup.cs.
◆ DRY_RUN
| static |
Whether or not to perform a dry run of the restoration operation.
With a RESTORE_POLICY of CLEAN or CLEAN_ALL, a dry run lists the objects the clean would drop in the CLEAN_DROPPED_OBJECTS entry of the response info map and drops nothing, and fails as the restore would if the clean is refused. Supported values:
The default value is FALSE.
Definition at line 246 of file RestoreBackup.cs.
◆ FALSE
| static |
A boolean constant for the RestoreBackupRequest.Options options.
Definition at line 143 of file RestoreBackup.cs.
◆ NONE
| static |
If an object to be restored already exists with the same name, abort and return error.
Definition at line 450 of file RestoreBackup.cs.
◆ PAUSE
| static |
Pause subscriptions that were active when the backup was made.
Definition at line 284 of file RestoreBackup.cs.
◆ REINGEST
| static |
Behavior to apply when restoring table data.
Supported values:
- TRUE: Restore table data by re-ingesting it. This is the default behavior if the cluster topology differs from that of the contained backup.
- FALSE: Restore the persisted data files directly.
The default value is FALSE.
Definition at line 310 of file RestoreBackup.cs.
◆ RENAME
| static |
If an object to be restored already exists with the same name, move that existing one to the schema specified by RENAMED_OBJECTS_SCHEMA.
This policy does not apply to non-schema objects.
Definition at line 467 of file RestoreBackup.cs.
◆ RENAMED_OBJECTS_SCHEMA
| static |
If the RESTORE_POLICY is RENAME, use this schema for relocated existing objects instead of the default generated one.
The default value is ”.
Definition at line 318 of file RestoreBackup.cs.
◆ REPLACE
| static |
If an object to be restored already exists with the same name, replace it with the backup version.
Only objects in the backup are dropped; existing objects that are not in the backup are kept, so the result is a merge of the backup into the database. To drop those as well, use CLEAN.
Definition at line 459 of file RestoreBackup.cs.
◆ RESTORE_ALL_PERMISSIONS
| static |
Whether or not all permissions of restored principals should be restored or scoped to the restored objects.
When RESTORE_POLICY is CLEAN or CLEAN_ALL, the default is TRUE: the clean drops each principal in scope along with all of its permissions, including those on objects it does not drop. Supported values:
The default value is FALSE.
Definition at line 348 of file RestoreBackup.cs.
◆ RESTORE_POLICY
| static |
Behavior to apply when any database object to restore already exists.
Supported values:
- NONE: If an object to be restored already exists with the same name, abort and return error.
- REPLACE: If an object to be restored already exists with the same name, replace it with the backup version. Only objects in the backup are dropped; existing objects that are not in the backup are kept, so the result is a merge of the backup into the database. To drop those as well, use CLEAN.
- RENAME: If an object to be restored already exists with the same name, move that existing one to the schema specified by RENAMED_OBJECTS_SCHEMA. This policy does not apply to non-schema objects.
- CLEAN: Before restoring, drop every existing object of each object type being restored, whether or not that object is in the backup, including objects that are not persisted; object types not being restored are left untouched, and schemas are not dropped. Unlike REPLACE, the clean is scoped by object type, not by name: restoring a single table drops every table in the database first, and the response warns when the objects to restore name specific objects of a type rather than all of them. Use DRY_RUN to list the objects that would be dropped. The restore is refused, before anything is dropped, if an object that would be dropped is still used by an object of a type that is not being restored, or cannot be dropped, such as a table locked by a backup in progress. As graphs, contexts, table monitors and stored procedures all depend on tables, restoring tables requires restoring each of those types of which any objects exist. A data sink generated for a monitor is dropped along with the monitor, and a home directory only along with its user. Objects created by other sessions while the restore runs are not dropped. If the restore fails after the clean, the dropped objects are not put back. System objects, the data source being restored from and its credential, the calling user and admin, with their default schemas, home directories and resource groups, and the calling user’s roles are never dropped, nor are the schemas holding any of these. Requires system administrator permission.
- CLEAN_ALL: Before restoring, drop every existing object in the database, regardless of which objects are being restored, including users, roles, non-system schemas and objects that are not persisted. The restore is refused, before anything is dropped, if an object cannot be dropped, such as a table locked by a backup in progress, or is still used by an object the clean keeps, such as a resource group a system user is in; it also requires CREATE_SCHEMA_IF_NOT_EXIST to be TRUE. If the restore fails after the clean, the dropped objects are not put back. System objects, the data source being restored from and its credential, the calling user and admin, with their default schemas, home directories and resource groups, and the calling user’s roles are never dropped, nor are the schemas holding any of these. Requires system administrator permission.
The default value is NONE.
Definition at line 446 of file RestoreBackup.cs.
◆ RESTORE_SUBSCRIPTIONS
| static |
Behavior to apply when restoring datasource subscriptions on tables.
Supported values:
- RESUME: Resume subscriptions that were active when the backup was made.
- PAUSE: Pause subscriptions that were active when the backup was made.
- CANCEL: Cancel active subscriptions.
The default value is RESUME.
Definition at line 276 of file RestoreBackup.cs.
◆ RESUME
| static |
Resume subscriptions that were active when the backup was made.
Definition at line 280 of file RestoreBackup.cs.
◆ TARGET_SCHEMA_MAP
| static |
Restore schema-based objects to alternate schema.
Value is a comma delimitted list of key:value pairs mapping the original (source) schema name as it exists in the backup to a target (destination) schema namespace: “src: dst [, src: dst [, …]]”. Note that schema names are case sensitive and must adhere to the database schema naming criteria. The default value is ”.
Definition at line 526 of file RestoreBackup.cs.
◆ TRUE
| static |
A boolean constant for the RestoreBackupRequest.Options options.
Definition at line 139 of file RestoreBackup.cs.
The documentation for this struct was generated from the following file:
- Kinetica/Protocol/RestoreBackup.cs