wbadmin restore catalogwbadmin restore catalog

从指定的存储位置恢复本地计算机的备份目录。Recovers a backup catalog for the local computer from a storage location that you specify.

若要使用此命令恢复特定备份中包含的备份目录,您必须是 Backup Operators 组或 Administrators 组的成员,或者您必须被委派了适当的权限。To recover a backup catalog included in a specific backup using this command, you must be a member of the Backup Operators group or the Administrators group, or you must have been delegated the appropriate permissions. 此外,必须在提升的命令提示符下运行 wbadmin ,方法是右键单击 " 命令提示符",然后选择 "以 管理员身份运行"。In addition, you must run wbadmin from an elevated command prompt, by right-clicking Command Prompt, and then selecting Run as administrator.

备注

如果存储备份的位置 (磁盘、DVD 或远程共享文件夹) 已损坏或丢失,并且无法用于还原备份目录,请运行 wbadmin delete catalog 命令删除损坏的目录。If the location (disk, DVD, or remote shared folder) where you store your backups is damaged or lost and can't be used to restore the backup catalog, run the wbadmin delete catalog command to delete the corrupted catalog. 在这种情况下,我们建议在删除备份目录后创建新备份。In this case, we recommend creating a new backup after your backup catalog is deleted.

语法Syntax

wbadmin restore catalog -backupTarget:{<BackupDestinationVolume> | <NetworkShareHostingBackup>} [-machine:<BackupMachineName>] [-quiet]

参数Parameters

参数Parameter 描述Description
-backupTarget-backupTarget 指定在创建备份后的时间点的系统备份目录的位置。Specifies the location of the backup catalog of the system as it was at the point after the backup was created.
-计算机-machine 指定要恢复其备份目录的计算机的名称。Specifies the name of the computer that you want to recover the backup catalog for. 当多台计算机的备份存储在同一位置时使用。Use when backups for multiple computers have been stored at the same location. 当指定 -backupTarget 时,应使用。Should be used when -backupTarget is specified.
-quiet-quiet 在不提示用户的情况下运行命令。Runs the command without prompts to the user.

示例Examples

若要从磁盘 D:上存储的备份还原目录,请键入:To restore a catalog from a backup stored on disk D:, type:

wbadmin restore catalog -backupTarget:D

若要从 server01 的共享文件夹中存储的备份还原目录 \\<servername>\<share> ,请键入:To restore a catalog from a backup stored in the shared folder \\<servername>\<share> of server01, type:

wbadmin restore catalog -backupTarget:\\servername\share -machine:server01

其他参考Additional References