Set-VBRBackupWindowOptions

Short Description

Modifies job backup window settings.

Applies to

Platform: VMware, Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Set-VBRBackupWindowOptions -Enabled -FromDay <DayOfWeek> -FromHour <Int32> -Options <VBRBackupWindowOptions> [-PassThru] -ToDay <DayOfWeek> -ToHour <Int32>  [<CommonParameters>]

Detailed Description

This cmdlet modifies the job backup window settings. You can use it to extend the existing backup window or remove specific days and hours from it. To modify settings, you must specify new values for the necessary parameters.

Set-VBRBackupWindowOptions Important!

To modify the backup windows settings, you must provide the PassThru parameter in your scripts. If you omit this parameter, the backup window settings will not be modified.

Note

To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameters values with new values. The parameters that you omit will remain unchanged.

Parameters

Parameter

Description

Type

Required

Position

Accept
Pipeline
Input

Options

Specifies the backup window settings that you want to modify.

Accepts the VBRBackupWindowOptions object. To create this object, run the New-VBRBackupWindowOptions cmdlet.

True

Named

True (ByProperty
Name, ByValue)

FromDay

Specifies the day of the week on which the backup window opens. The cmdlet will extend the backup window with this day or will remove that day from the backup window.

Default: Sunday.

DayOfWeek

True

Named

False

FromHour

Specifies the hour on which the backup window opens. The cmdlet will add this hour to the existing backup window or will remove that hour from the backup window.

Default: 0.

Int32

True

Named

False

ToDay

Specifies the day of the week on which the backup window ends. The cmdlet will extend the backup window with this day or will remove that day from the backup window.

Default: Saturday.

DayOfWeek

True

Named

False

ToHour

Specifies the hour on which the backup window ends. The cmdlet will add this hour to the existing backup window or will remove that hour from the backup window.

Default: 23.

Int32

True

Named

False

Enabled

Defines that the cmdlet will extend the backup window or will remove specific days and hours from it.

If you set this parameter to the Enabled:$false value, the cmdlet will remove the specified time period from the backup window.

SwitchParameter

True

Named

False

PassThru

Defines that the command will return the output object to the Windows PowerShell console.

SwitchParameter

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Object Output

None.

Examples

Set-VBRBackupWindowOptionsExample 1. Removing Specific Hours from Backup Window

Set-VBRBackupWindowOptionsExample 2. Extending Backup Window

Related Commands

Page updated 3/13/2024

Page content applies to build 12.3.1.1139