Source
pub async fn create_backup( &self, backup_name: String, backup_type: String, backup_objects_map: HashMap<String, String>, datasink_name: String, ) -> Result<CreateBackupResponse, KineticaError>
Create a database backup
Creates a database backup, containing a snapshot of existing objects, at the remote file store accessible via the data sink specified by datasink_name.
backup_name- Name for this backup. If the backup already exists, only an incremental or differential backup can be made, unless recreate is set to true.backup_type- Type of snapshot to create.backup_objects_map- Map of objects to be captured in the backup; must be specified when creating a full snapshot and left unspecified when creating an incremental or differential snapshot.datasink_name- Data sink through which the backup will be stored.
Source
pub async fn create_backup_with_opts( &self, backup_name: String, backup_type: String, backup_objects_map: HashMap<String, String>, datasink_name: String, options: CreateBackupRequestOptions, ) -> Result<CreateBackupResponse, KineticaError>
Create a database backup
Creates a database backup, containing a snapshot of existing objects, at the remote file store accessible via the data sink specified by datasink_name.
backup_name- Name for this backup. If the backup already exists, only an incremental or differential backup can be made, unless recreate is set to true.backup_type- Type of snapshot to create.backup_objects_map- Map of objects to be captured in the backup; must be specified when creating a full snapshot and left unspecified when creating an incremental or differential snapshot.datasink_name- Data sink through which the backup will be stored.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn create_backup_raw( &self, request: &CreateBackupRequest, ) -> Result<CreateBackupResponse, KineticaError>
Sends a pre-built CreateBackupRequest to the /create/backup endpoint.
Source
pub async fn create_backup_from_url( &self, url: &str, request: &CreateBackupRequest, ) -> Result<CreateBackupResponse, KineticaError>
Sends a pre-built CreateBackupRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.