Skip to main content

Constants for the fields of the /create/backup request.

Option fields

backup_objects_map

Constants for backup_objects_map.

pub const ALL: &str = “all”;

All object types and data contained in the given schema(s).

pub const CATALOG: &str = “catalog”;

Data Lake catalog that is external to the database.

pub const CONTEXT: &str = “context”;

Context(s).

pub const CREDENTIAL: &str = “credential”;

Credential(s).

pub const DATASINK: &str = “datasink”;

Data sink(s).

pub const DATASOURCE: &str = “datasource”;

Data source(s).

pub const DIRECTORY: &str = “directory”;

KiFS File directory(ies).

pub const FUNCTION_ENVIRONMENT: &str = “function_environment”;

Python UDF function environment(s).

pub const GRAPH: &str = “graph”;

Graph definition(s). Source table(s), if applicable, are required in order to restore graph objects.

pub const MONITOR: &str = “monitor”;

Table monitor(s) / SQL stream(s).

pub const RESOURCE_GROUP: &str = “resource_group”;

Resource group(s).

pub const ROLE: &str = “role”;

Role(s), role members (roles or users, recursively), and associated permissions.

pub const STORED_PROCEDURE: &str = “stored_procedure”;

SQL procedure(s).

pub const TABLE: &str = “table”;

Table(s) and SQL view(s). Active subscriptions on any tables to be backed up will be temporarily suspended while the backup is active.

pub const USER: &str = “user”;

User(s) (internal and external) and associated permissions.

pub const USER_DEFINED_FUNCTION: &str = “user_defined_function”;

UDF(s).

backup_type

Constants for backup_type.

pub const DIFFERENTIAL: &str = “differential”;

Snapshot of changes in the database objects and data since the last full snapshot.

pub const FULL: &str = “full”;

Snapshot of the given database objects and data.

pub const INCREMENTAL: &str = “incremental”;

Snapshot of changes in the database objects and data since the last snapshot of any kind.

options

Constants for options.

pub const BLOCK_TABLE_MUTATIONS: &str = “block_table_mutations”;

Whether or not to block all mutations on target tables while they are being backed up.

pub const CHECKSUM: &str = “checksum”;

Whether or not to calculate checksums for backup files.

pub const COMMENT: &str = “comment”;

Comments to store with this backup.

pub const DDL_ONLY: &str = “ddl_only”;

Whether or not, for tables, to only backup DDL and not table data.

pub const DELETE_INTERMEDIATE_BACKUPS: &str = “delete_intermediate_backups”;

Whether or not to delete any intermediate snapshots when the backup_type is set to differential.

pub const DRY_RUN: &str = “dry_run”;

Whether or not to perform a dry run of a backup operation.

pub const FALSE: &str = “false”;
pub const MAX_INCREMENTAL_BACKUPS_TO_KEEP: &str = “max_incremental_backups_to_keep”;

Maximum number of incremental snapshots to keep.

pub const RECREATE: &str = “recreate”;

Whether or not to replace an existing backup object with a new backup with a full snapshot, if one already exists.

pub const TRUE: &str = “true”;