Creates and enables a daily backup schedule or modifies an existing backup schedule. With no parameters specified, it displays the currently scheduled backup settings.

Note

This subcommand applies only to Windows Server 2008.

To configure or modify a daily backup schedule, you must be a member of the Administrators group. 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 subcommand, see Examples.

Syntax

wbadmin enable backup
[-addtarget:<BackupTargetDisk>]
[-removetarget:<BackupTargetDisk>]
[-schedule:<TimeToRunBackup>]
[-include:<VolumesToInclude>]
[-allCritical]
[-quiet]

Parameters

Parameter Description

-addtarget

Specifies the storage location for backups. Requires you to specify a destination for backups as a disk identifier (see Remarks). The disk is formatted before use, and any existing data on it is permanently erased.

-removetarget

Specifies the storage location that you want to remove from the existing backup schedule. Requires you to specify the location as a disk identifier (see Remarks).

-schedule

Specifies times of day to create a backup, formatted as HH:MM and comma delimited.

-include

Specifies the comma-delimited list of volume drive letters, volume mount points, or GUID-based volume names to include in the backup.

-allCritical

Specifies that all critical volumes (volumes that contain the operating system's state) be included in the backup. If this parameter is not used, the command will fail. Can be used with the -include option.

-quiet

Runs the subcommand with no prompts to the user.

Remarks

To view the disk identifier value for your disks, type wbadmin get disks.

Examples

The following example will do the following:

  • Schedule backups of hard disk drives e:, d:\mountpoint, and \\?\Volume{cc566d14-44a0-11d9-9d93-806e6f6e6963}\

  • Save the files to the disk DiskID

  • Run backups daily at 9:00 A.M. and 6:00 P.M.

wbadmin enable backup -addtarget:DiskID -schedule:09:00,18:00 -include:e:,d:\mountpoint,\\?\Volume{cc566d14-44a0-11d9-9d93-806e6f6e6963}\

Additional references