Partager via


Wbadmin delete systemstatebackup

Applies To: Windows Server 2008, Windows Server 2008 R2

Deletes the system state backups that you specify. If the specified volume contains backups other than system state backups of your local server, those backups will not be deleted. In Windows Server 2008, each system state backup is a full backup and is stored in a separate directory. This means that a system state backup on Windows Server 2008 consumes the space needed for a full backup every time it occurs. In Windows Server 2008 R2 system state backups are incremental and use VSS shadow copies for creating different versions of the backup, making better use of disk space.

Note

This subcommand applies only to Windows Server 2008 and Windows Server 2008 R2.
Windows Server Backup does not back up or recover registry user hives (HKEY_CURRENT_USER) as part of system state backup or system state recovery.

To delete a system state backup with this subcommand, you must be a member of the Backup Operators group or the Administrators group, or you must have been delegated the appropriate permissions. In addition, 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.)

For examples of how to use this command, see Examples.

Syntax

wbadmin delete systemstatebackup
{-keepVersions:<NumberofCopies> | -version:<VersionIdentifier> | -deleteOldest}
[-backupTarget:<VolumeName>]
[-machine:<BackupMachineName>]
[-quiet]

Important

One and only one of these parameters must be specified: -keepVersions, -version, or -deleteOldest.

Parameters

Parameter Description

-keepVersions

Specifies the number of the latest system state backups to keep. The value must be a positive integer. The parameter value -keepVersions:0 deletes all the system state backups.

-version

Specifies the version identifier of the backup in MM/DD/YYYY-HH:MM format. If you do not know the version identifier, type wbadmin get versions.

Versions that are exclusively system state backups can be deleted using this command. Use wbadmin get items to view the version type.

-deleteOldest

Deletes the oldest system state backup.

-backupTarget

Specifies the storage location for the backup that you want to delete. The storage location for backups of disks can be a drive letter, a mount point, or a GUID-based volume path. This value only needs to be specified for locating backups that are not of the local computer. Information about backups for the local computer will be available in the backup catalog on the local computer.

-machine

Specifies the computer whose system state backup you want to delete. Useful when multiple computers were backed up to the same location. Should be used when the -backupTarget parameter is specified.

-quiet

Runs the subcommand with no prompts to the user.

Examples

To delete the system state backup created on March 31, 2006 at 10:00 AM, type:

wbadmin delete systemstatebackup -version:03/31/2006-10:00

To delete all system state backups, except the three most recent, type:

wbadmin delete systemstatebackup -keepVersions:3

To delete the oldest system state backup stored on disk f, type:

wbadmin delete systemstatebackup -backupTarget:f -deleteOldest

Additional references