Skip to main content

restore_database

Function restore_database 

Source
pub fn restore_database(
    database_path: &Path,
    backup_path: &Path,
) -> Result<RestoreSummary, ApplicationError>
Expand description

Restores a validated backup while preserving the replaced database.

ยงErrors

Returns ApplicationError when locking, validation, safety backup, or restore fails.