New-VESQLIRSwitchOverOptions
Short Description
Defines the switchover option that you can apply to the instant recovery session of a Microsoft SQL Server database.
Product: Veeam Backup & Replication
Product Edition: Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
AutoSwitchNew-VESQLIRSwitchOverOptions [-Auto] [<CommonParameters>]
-
ManualSwitchNew-VESQLIRSwitchOverOptions [-Manual] [<CommonParameters>]
-
ScheduledSwitchNew-VESQLIRSwitchOverOptions [-Scheduled] -SwitchingTimeUtc <DateTime> [<CommonParameters>]
Detailed Description
This cmdlet creates the VESQLIRSwitchOverOptions object that defines a switchover option that you can apply to the instant recovery session of Microsoft SQL Server databases. You can use this option to create a switchover option and define a schedule for a scheduled switchover.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Auto |
Defines that the switchover will be performed in the |
|
True |
Named |
False |
|
Manual |
Defines that the switchover will be performed manually at a later time, using the |
|
True |
Named |
False |
|
Scheduled |
Defines that the switchover will be performed in the |
|
True |
Named |
False |
|
SwitchingTimeUtc |
For the scheduled switchover option. Specifies the date and time in UTC when the switchover must be started. |
|
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Output Object
The cmdlet returns the VESQLIRSwitchOverOptions object that contains a switchover option with the defined schedule.
Examples
Example 1. Creating Scheduled Switchover Option
|
This example shows how to define a scheduled switchover option. The switchover schedule is set to
Perform the following steps:
|
Example 2. Defining Automatic Switchover Option
|
This command defines the auto switchover option. The switchover will run immediately after database files are copied and synchronized.
|
Example 3. Defining Manual Switchover Option
|
This command defines a manual switchover option. The switchover will start after you initiate this process manually with the
|
Related Commands
Set-VESQLIRDatabaseModifies switchover settings for a specified Microsoft SQL Server database.Restore-VESQLIRDatabasePerforms instant recovery of a backed-up Microsoft SQL Server database.Switch-VESQLIRDatabasePerforms switchover of a Microsoft SQL Server database published within an instant recovery session.