Set-VBOBackupWindowSettings
Short Description
Modifies the backup window settings.
Syntax
|
Set-VBOBackupWindowSettings -Settings <VBOBackupWindowSettings> -FromDay <DayOfWeek> -FromHour <Int32> -ToDay <DayOfWeek> -ToHour <Int32> [-Enabled] [<CommonParameters>] |
Detailed Description
This cmdlet modifies the backup window settings. You can use a backup window object when creating or modifying backup job and backup copy job schedule settings. For more information on how to create backup job and backup copy job schedule settings, see the New-VBOJobSchedulePolicy and New-VBOCopyJobSchedulePolicy cmdlets.
To modify settings, you need to enter the necessary parameters with new values. The parameters that you omit will remain unchanged.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Settings |
Specifies a backup window that you want to modify. |
Accepts the VBOBackupWindowSettings object. To create this object, run the New-VBOBackupWindowSettings cmdlet. |
True |
Named |
True (ByValue, ByPropertyName) |
|
FromDay |
Specifies the day of the week on which the backup window opens. |
DayOfWeek |
True |
Named |
False |
|
FromHour |
Specifies the hour on which the backup window opens. |
Int32 |
True |
Named |
False |
|
ToDay |
Specifies the day of the week on which the backup window ends. |
DayOfWeek |
True |
Named |
False |
|
ToHour |
Specifies the hour on which the backup window ends. |
Int32 |
True |
Named |
False |
|
Enabled |
Defines that the cmdlet will create a backup window with allowed backup hours. Default: False If this parameter is set to false, the cmdlet will create a backup window with prohibited backup hours. |
SwitchParameter |
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Examples
Example 1: Adding Allowed Backup Hours to Backup Window
|
This example shows how to add allowed backup hours to the backup window of the existing job.
Perform the following steps:
|
Example 2: Adding Prohibited Backup Hours to Backup Window
|
This example shows how to add prohibited backup hours to the backup window of the existing job.
Perform the following steps:
|
Related Commands