New-VBRWindowsWorkstationScheduleOptions
Short Description
Creates the schedule for the backup policy for Windows workstations.
Applies to
Product Edition: Community, Standard, Enterprise, Enterprise Plus
Syntax
This cmdlet provides the following parameter sets:
- To specify a schedule for both periodical backups and backups at a particular event.
New-VBRWindowsWorkstationScheduleOptions -DailyOptions <VBRDailyOptions> -PowerOffAction <VBRPowerOffAction> {SkipBackup | BackupAtPowerOn} -PostBackupAction <VBRPostBackupAction> {Sleep | Hibernate | Shutdown |KeepRunning} [-EnableDailySchedule] [-BackupAtLock] [-BackupAtLogOff] [-BackupAtTargetConnection] |
- To specify a schedule for backups at a particular event.
New-VBRWindowsWorkstationScheduleOptions [-BackupAtLock] [-BackupAtLogOff] [-BackupAtTargetConnection][-EjectStorageAfterBackup] [-BackupTimeout <int>] |
Detailed Description-
The cmdlet creates the VBRWindowsWorkstationScheduleOptions object. This object contains schedule settings for the backup policy that Veeam Agent job applies to Windows workstations.
|
Use the New-VBRServerScheduleOptions cmdlet to create the schedule settings for the following types of jobs:
|
Parameters
Parameter | Description | Required | Position | Accept | Accept |
DailyOptions | For periodical backups. Specifies daily schedule settings. The cmdlet will create the server schedule with these settings. Accepts the VBRDailyOptions type. | True | Named | True (ByValue) |
|
PowerOffAction | For periodical backups. Specifies the action that Veeam Agent for Microsoft Windows must perform when the protected computer is powered off at a time when the scheduled backup job must start.
| True | Named | False |
|
PostBackupAction | For periodical backups. Specifies the action that Veeam Agent for Microsoft Windows will perform after the backup job completes successfully.
| True | Named | False |
|
EnableDailySchedule | For periodical backups. Enables daily schedule. Veeam Agent backup job will start at the time specified in the DailyOptions parameter. | False | Named | False |
|
BackupAtLock | For backups at a particular event. Indicates that the Veeam Agent backup job will start when the user locks the protected computer. | False | Named | False |
|
BackupAtLogOff | For backups at a particular event. Indicates that the Veeam Agent backup job will start when the user working with the protected computer performs a logout operation. | False | Named | False |
|
BackupTimeout | For backups at a particular event. Specifies an interval between the backup job sessions. Use the BackupTimeoutType parameter to set the job interval. NOTE: This option does not work for daily schedule. | False | Named | False |
|
BackupTimeoutType | For the BackupTimeout parameter. Specifies an interval between the Veeam Agent backup job. Use the following types of time interval:
| False | Named | False |
|
BackupAtTargetConnection | For backups at a particular event Indicates that the Veeam Agent backup job will start when the backup storage becomes available. | False | Named | False |
|
EjectStorageAfterBackup | For the BackupAtTargetConnection parameter. Indicates that Veeam Agent for Microsoft Windows will unmount the storage device after the backup job completes successfully. | False | Named | False |
|
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Return Type
Example 1
This example shows how to create a schedule for a Veeam Agent job that backs up Windows workstations. The job will run with the following settings:
- The job will run every day at 7:00 AM.
- In case the protected computer is powered off when the backup job starts, Veeam Agent for Microsoft Windows will start the scheduled backup job when the protected computer is powered on.
- Veeam Agent for Microsoft Windows will bring the computer to the hibernate mode after the backup job completes successfully.
- Veeam Agent for Microsoft Windows will back up the protected computer when the user logs off.
To create the schedule, perform the following steps:
- Run New-VBRDailyOptions to specify the daily schedule. Save the result to the $daily variable.
- Run New-VBRWindowsWorkstationScheduleOptions with the $daily variable. Specify the following settings:
- Set the BackupAtPowerOn value for the PowerOffAction parameter to specify the action when the machine powers off.
- Set the Hibernate value for the PostBackupAction parameter to specify the action after the backup.
- Use the BackupAtLogOff parameter to create a backup when the user logs off.
$daily = New-VBRDailyOptions -Type Everyday -Period 7:00 New-VBRWindowsWorkstationScheduleOptions -DailyOptions $daily -EnableDailySchedule -PowerOffAction BackupAtPowerOn -PostBackupAction Hibernate -BackupAtLogOff |
Example 2
This command creates a schedule for Windows workstation. Per this schedule, Veeam Backup & Replication will start a backup session when the user locks the machine. Provide the BackupTimeout parameter to set the interval between Veeam Agent backup jobs to 5 hours.
Related Commands