Click to Rate and Give Feedback
TechNet
TechNet Library
Windows Server
A-Z List
Wbadmin
Wbadmin

Updated: January 24, 2011

Applies To: Windows Server 2008, Windows Server 2008 R2, Windows Vista

Enables you to back up and restore your operating system, volumes, files, folders, and applications from a command prompt.

To configure a regularly scheduled backup, you must be a member of the Administrators group. To perform all other tasks with this command, you must be a member of the Backup Operators or the Administrators group, or you must have been delegated the appropriate permissions.

You must run wbadmin from an elevated command prompt. (To open an elevated command prompt, click Start, right-click Command Prompt, and then click Run as administrator.)


    

Subcommands

 

Subcommand Description

Wbadmin enable backup

Configures and enables a regularly scheduled backup.

This subcommand applies only to versions of Windows Server 2008 and Windows Server 2008 R2.

Wbadmin disable backup

Disables your daily backups.

This subcommand applies only to Windows Server 2008 and Windows Server 2008 R2.

Wbadmin start backup

Runs a one-time backup. If used with no parameters, uses the settings from the daily backup schedule.

Wbadmin stop job

Stops the currently running backup or recovery operation.

Wbadmin get versions

Lists details of backups recoverable from the local computer or, if another location is specified, from another computer.

Wbadmin get items

Lists the items included in a backup.

Wbadmin start recovery

Runs a recovery of the volumes, applications, files, or folders specified.

This subcommand applies only to Windows Server 2008 and Windows Server 2008 R2.

Wbadmin get status

Shows the status of the currently running backup or recovery operation.

Wbadmin get disks

Lists disks that are currently online.

This subcommand applies only to Windows Server 2008 and Windows Server 2008 R2.

Wbadmin start systemstaterecovery

Runs a system state recovery.

This subcommand applies only to Windows Server 2008 and Windows Server 2008 R2.

Wbadmin start systemstatebackup

Runs a system state backup.

This subcommand applies only to Windows Server 2008 and Windows Server 2008 R2.

Wbadmin delete systemstatebackup

Deletes one or more system state backups.

This subcommand applies only to Windows Server 2008 and Windows Server 2008 R2.

Wbadmin start sysrecovery

Runs a recovery of the full system (at least all the volumes that contain the operating system's state). This subcommand applies only to Windows Server 2008 and Windows Server 2008 R2, and it is only available if you are using the Windows Recovery Environment.

Wbadmin restore catalog

Recovers a backup catalog from a specified storage location in the case where the backup catalog on the local computer has been corrupted.

This subcommand applies only to Windows Server 2008 and Windows Server 2008 R2.

Wbadmin delete catalog

Deletes the backup catalog on the local computer. Use this subcommand only if the backup catalog on this computer is corrupted and you have no backups stored at another location that you can use to restore the catalog.

This subcommand applies only to Windows Server 2008 and Windows Server 2008 R2.

Remarks

The wbadmin command replaces the ntbackup command that was released with previous versions of Windows. You cannot recover backups that you created with ntbackup by using wbadmin. However, a version of ntbackup is available as a download for Windows Server 2008, Windows Vista, Windows Server 2008 R2, or Windows 7 users who want to recover backups that they created using ntbackup. This downloadable version of ntbackup enables you to perform recoveries only of legacy backups, and it cannot be used on computers running Windows Server 2008, Windows Vista, Windows Server 2008 R2, or Windows 7 to create new backups. To download this version of ntbackup, see http://go.microsoft.com/fwlink/?LinkId=82917. And for more information about using this download, see article 974674 in the Microsoft Knowledge Base (http://go.microsoft.com/fwlink/?LinkId=194761).

Additional references

Community Content   What is Community Content?
Add new content RSS  Annotations
Windows Backup Scheduled but runs erratically      Services Manager   |   Edit   |   Show History
Windows Backup is scheduled to run every evening at 10:00PM. It's hit or miss whether it runs every night or not. Some weeks it runs only on Saturdays. On other weeks I might get three backups. Since 11/24 I have had 18 done at the correct time. There is very little one can do other than change the drive or times. What might be causing this issue? How might I fix this? Thanks
Tags What's this?: Add a tag
Flag as ContentBug
example for wbadmin start backup needed      testrrrr   |   Edit   |   Show History
Could you please include an example for the exclude parameter? I tried the following:

wbadmin start backup -backuptarget:j: -exclude:E:\Ordner2\ -include:e:\*

but ordner2 is always included if i look at the logfile.

I need anything from e: but "ordner2"
Tags What's this?: Add a tag
Flag as ContentBug
Determine the identifier for dedicated local backup volumes with no mount points      jeff-42 ... novi68   |   Edit   |   Show History
Windows Server Backup allows internal disks to be dedicated to backups; see http://technet.microsoft.com/en-us/library/cc753528.aspx. Dedicated backup volumes might not have mount points (that is, might not have a drive letter in Windows Explorer). Many of the wbadmin commands have a backupTarget parameter, which might require the identifier of a dedicated local backup volume. To determine the identifier for a backup volume with no mount points, use the mountvol command with no parameters:

&;;gt; mountvol
Creates, deletes, or lists a volume mount point.
.
.
.
Possible values for VolumeName along with current mount points are:
.
.
.
\\?\Volume{12345678-abcd-abcd-0123456789ab}
*** NO MOUNT POINTS ***
.
.
.

The identifiers that were output from the mountvol command can be used for the backupTarget parameter. For example:

&;;gt; wbadmin get versions -backupTarget:\\?\Volume{12345678-abcd-abcd-0123456789ab}
Tags What's this?: Add a tag
Flag as ContentBug
delete backups...      ClovisFilho   |   Edit   |   Show History
You can use delete SystemStateBackup -KeepVersions:5.

Change the number at the end to configure how many backup files you wanna keep. For example, you have 30 backup files in your server. With this command, only the last 5 will keep on.
Tags What's this?: Add a tag
Flag as ContentBug
delete backups?      dutchdavey   |   Edit   |   Show History
I need to be able to delete backups as well as catalogs, based on how old they are. Is this planned?
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker