Exports the cryptographic database to the specified path and returns the metadata required for backup restoration.