'Create backup metadata export entry.'

def _create_exported_record_entry(self, vol_size=1, exported_id=None):

    vol_id = self._create_volume_db_entry(status='available', size=vol_size)
    backup = self._create_backup_db_entry(status=fields.BackupStatus.AVAILABLE, volume_id=vol_id)
    if (exported_id is not None):
        backup.id = exported_id
    export = self.backup_mgr.export_record(self.ctxt, backup)
    return export
