async fn import_backup(
context: &Context,
backup_to_import: &Path,
passphrase: String,
) -> Result<()>
Expand description
Imports backup into the currently open database.
The contents of the currently open database will be lost.
passphrase
is the passphrase used to open backup database. If backup is unencrypted, pass
empty string here.