code: def workspace_backup_restore(ctx, choose_first, bak):
      
      backup_manager = WorkspaceBackupManager(Workspace(ctx.resolver, directory=ctx.directory, mets_basename=ctx.mets_basename, automatic_backup=ctx.automatic_backup))
      backup_manager.restore(bak, choose_first)
docs: Restore backup BAK