New-VEPSQLIRSwitchOverOptions
Short Description
Defines the switchover option that you can apply to the instant recovery session of a PostgreSQL instance.
Applies to
Veeam Backup & Replication
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides parameter sets that allow you to:
- Create a switchover option that starts the switchover at a specified date and time.
New-VEPSQLIRSwitchOverOptions [-Scheduled <SwitchParameter>] -SwitchingTimeUtc <DateTime> [<CommonParameters>] |
- Create a switchover option that starts the switchover immediately after database files are copied and synchronized.
New-VEPSQLIRSwitchOverOptions [-Auto <SwitchParameter>] [<CommonParameters>] |
- Create a switchover option that allows you to start the switchover manually at any time after database files are copied and synchronized.
New-VEPSQLIRSwitchOverOptions [-Manual <SwitchParameter>] [<CommonParameters>] |
Detailed Description
This cmdlet creates a switchover option that you can use in the instant recovery session of a PostgreSQL instance. You can use it 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 Auto mode. This option starts switchover immediately after database files are copied and synchronized. | SwitchParameter | True | Named | False |
Manual | Defines that the switchover will be performed manually at a later time, using the Switch-VEPSQLInstanceInstantRecovery cmdlet. | SwitchParameter | True | Named | False |
Scheduled | Defines that the switchover will be performed in the Scheduled mode. Switchover will be performed at the specified date and time. | SwitchParameter | True | Named | False |
SwitchingTimeUtc | For the scheduled switchover option. Specifies the date and time in UTC when the switchover must be started. | DateTime | 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.
Output Object
The cmdlet returns the VEPSQLIRSwitchOverOptions object that contains a switchover option with the defined schedule.
Examples
Example 1. Creating Scheduled Switchover Option
This example shows how to create a scheduled switchover option.
Perform the following steps:
|
Example 2. Defining Auto Switchover Option
This command defines an 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 Switch-VEPSQLInstanceInstantRecovery cmdlet.
|
Related Commands