Skip to main content
Source

pub async fn restore_backup( &self, backup_name: String, restore_objects_map: HashMap<String, String>, datasource_name: String, ) -> Result<RestoreBackupResponse, KineticaError>

Restores a backup

Restores database objects from a backup accessible via the data source specified by datasource_name.

  • backup_name - Name of the backup to restore from, which must refer to an existing backup.
  • restore_objects_map - Map of database objects to be restored from the backup.
  • datasource_name - Data source through which the backup will be restored.
Source

pub async fn restore_backup_with_opts( &self, backup_name: String, restore_objects_map: HashMap<String, String>, datasource_name: String, options: RestoreBackupRequestOptions, ) -> Result<RestoreBackupResponse, KineticaError>

Restores a backup

Restores database objects from a backup accessible via the data source specified by datasource_name.

  • backup_name - Name of the backup to restore from, which must refer to an existing backup.
  • restore_objects_map - Map of database objects to be restored from the backup.
  • datasource_name - Data source through which the backup will be restored.
  • options - The optional parameters; any left unset take the server’s defaults.

Sends a pre-built RestoreBackupRequest to the /restore/backup endpoint.

Sends a pre-built RestoreBackupRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.