New-VBOBackupWindowSettings
Short Description
Creates a backup window.
Syntax
New-VBOBackupWindowSettings -FromDay <DayOfWeek> -FromHour <Int32> -ToDay <DayOfWeek> -ToHour <Int32> [-Enabled] [<CommonParameters>] |
Detailed Description
This cmdlet creates a backup window for a backup job or a backup copy job. The backup window sets a time period within which the job must be completed.
You can use a backup window object when creating or modifying backup or backup copy job schedule settings.
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|---|---|---|---|---|
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. Creating Backup Window with Allowed Hours
This example shows how to create a backup window with allowed backup hours from 8 AM on Monday to 5 PM on Saturday and add it to the new job schedule.
Perform the following steps:
|
Example 2. Creating Backup Window with Prohibited Hours
This example shows how to create a backup window with prohibited backup hours from 8 AM to 5 PM on Monday and add it to the new job schedule.
Perform the following steps:
|
Example 3. Adding New Backup Window to Existing Backup Job Schedule
This example shows how to create a backup window and add it to the existing job schedule.
Perform the following steps:
|
Related Commands