Skip to main content

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

Option fields

action

Constants for action.

pub const CHECKSUM: &str = “checksum”;

Calculate checksum for backed-up files.

pub const DDL_ONLY: &str = “ddl_only”;

Whether or not to only save DDL and not back up table data, when taking future snapshots; set value to ‘true’ or ‘false’ for DDL only or DDL and table data, respectively.

pub const MAX_INCREMENTAL_BACKUPS_TO_KEEP: &str = “max_incremental_backups_to_keep”;

Maximum number of incremental snapshots to keep, when taking future snapshots; set value to the number of snapshots to keep.

pub const MERGE: &str = “merge”;

Merges all snapshots within a backup and creates a single full snapshot.

pub const PURGE: &str = “purge”;

Deletes a snapshot from a backup; set value to the snapshot ID to purge.

options

Constants for options.

pub const COMMENT: &str = “comment”;

Comments to store with the backup.

pub const DRY_RUN: &str = “dry_run”;

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

pub const FALSE: &str = “false”;
pub const TRUE: &str = “true”;