Syntax: WBADMIN ENABLE BACKUP -addtarget: -removetarget: -schedule: -include: -nonRecurseInclude: -exclude: -nonRecurseExclude: ...

Syntax:  WBADMIN ENABLE BACKUP 
    [-addtarget:]
    [-removetarget:]
    [-schedule:]
    [-include:
    [-nonRecurseInclude:]
    [-exclude:]
    [-nonRecurseExclude:]
    [-allCritical]
    [-systemState]
    [-vssFull | -vssCopy]
    [-user:]
    [-password:]
    [-quiet]

Description:  Creates a daily backup schedule or modifies an existing backup 
schedule. With no options specified, displays the current scheduled backup 
settings.
To use this command, you must be a member of the Backup Operators group 
or Administrators group.

Parameters:
-addtarget     Specifies the storage location for backups. Requires you to 
                specify the location as a disk, volume, or Universal Naming 
                Convention (UNC) path to a remote shared folder 
                (\\\\). By default, the backup will be 
                saved at:  \\\\WindowsImageBackup\
                \. If you specify a disk, the disk will be 
                formatted before use, and any existing data on it is 
                permanently erased. If you specify a shared folder, you cannot
                add more locations. You can only specify one shared folder as 
                a storage location at a time.
                Important: If you save a backup to a remote shared folder, 
                that backup will be overwritten if you use the same folder to 
                backup the same computer again. In addition, if the backup 
                operation fails, you may end up with no backup because the 
                older backup will be overwritten, but the newer backup will 
                not be usable. You can avoid this by creating subfolders in 
                the remote shared folder to organize your backups. If you do 
                this, the subfolders will need twice the space of the parent 
                folder. 
                Only one location can be specified in a single command. 
                Multiple volume and disk backup storage locations can be added
                by running the command again.

-removetarget  Specifies the storage location that you want to remove from the
                existing backup schedule.

-schedule      Specifies the times of day to create a backup (comma-delimited
                and formatted as HH:MM).

-include       Specifies the comma-delimited list of items to include in the 
                backup. You can include multiple files, folders, or volumes. 
                Volume paths can be specified using volume drive letters, 
                volume mount points, or GUID-based volume names. If you use a
                GUID-based volume name, it should be terminated with a 
                backslash (\). You can use the wildcard character (*) in the 
                file name when specifying a path to a file.

-nonRecurseInclude   Specifies the non-recursive, comma-delimited list of
                items to include in the backup. You can include multiple
                files, folders, or volumes. Volume paths can be specified
                using volume drive letters, volume mount points, or GUID-based
                volume names. If you use a GUID-based volume name, it should
                be terminated with a backslash (\). You can use the wildcard
                character (*) in the file name when specifying a path to a
                file. Should be used only when the -backupTarget parameter is
                used.

-exclude       Specifies the comma-delimited list of items to exclude from the
                backup. You can exclude files, folders, or volumes. Volume 
                paths can be specified using volume drive letters, volume 
                mount points, or GUID-based volume names. If you use a 
                GUID-based volume name, it should be terminated with a 
                backslash (\). You can use the wildcard character (*) in the 
                file name when specifying a path to a file. 

-nonRecurseExclude   Specifies the non-recursive, comma-delimited list of 
                items to exclude from the backup. You can exclude files, 
                folders, or volumes. Volume paths can be specified using 
                volume drive letters, volume mount points, or GUID-based 
                volume names. If you use a GUID-based volume name, it should 
                be terminated with a backslash (\). You can use the wildcard 
                character (*) in the file name when specifying a path to a 
                file.

-systemState   Creates a backup that includes the system state in addition to
                any other items that you specified with the -include 
                parameter.

-allCritical   Creates a backup that includes all critical volumes (critical 
                volumes contain the operating system files and components) in 
                addition to any other items that you specified with the 
                -include parameter. This parameter is useful if you are 
                creating a backup for bare metal recovery. 

-vssFull       Performs a full backup using the Volume Shadow Copy Service 
                (VSS). Each file's history is updated to reflect that it was 
                backed up. If this parameter is not used WBADMIN START BACKUP
                makes a copy backup, but the history of files being backed up
                is not updated.
                Caution: Do not use this parameter if you are using a product 
                other than Windows Server Backup to back up applications that 
                are on the volumes included in the current backup. Doing so 
                can potentially break the incremental, differential, or other
                type of backups that the other backup product is creating.

-vssCopy       Performs a copy backup using VSS. The history of the files 
                being backed up is not updated. This is the default value.

-user          Specifies the user with write permission to the backup storage
                destination (if it is a remote shared folder). The user needs
                to be a member of the Administrators group or Backup Operators
                group on the computer that is getting backed up. 

-password      Specifies the password for the user name provided by the 
                parameter -user.

-quiet         Runs the command with no prompts to the user.

Examples:
WBADMIN ENABLE BACKUP -addtarget:{aa123d14-bba0-1dd9-0d93-80aaaa6bbb63} 
-schedule:09:00,18:00 -include:e:,d:\mountpoint,
\\?\Volume{cc566d14-44a0-11d9-9d93-806e6f6e6963}\
WBADMIN ENABLE BACKUP -include:c:\dir1\* -addtarget:e: -schedule:00:00

Remarks:  To view the disk identifier of all online disks, use 
WBADMIN GET DISKS. 
If you want to back up an application for recovery, you must back up the 
entire volume that contains the application and application data. 

English
English (United States)
Español (España)
Spanish (Spain)
Français (France)
French (France)
italiano
Italian
日本語
Japanese
한국어
Korean
Português
Portuguese
Русский
Russian