Start-VEPSQLInstancePublish
Short Description
Publishes a backed-up PostgreSQL instance.
Product: Veeam Backup & Replication
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
PublishToLinuxTargetStart-VEPSQLInstancePublish [-Instance] <VEPSQLInstance> [[-ToPointInTimeUTC] <DateTime>]
[-LinuxCredentials <VEPSQLLinuxCredential>] [-ServerName <String>] [-SshPort <Int32>] [-Force] [-Port <Int32>] [<CommonParameters>]
-
PublishToWindowsTargetStart-VEPSQLInstancePublish [-Instance] <VEPSQLInstance> [[-ToPointInTimeUTC] <DateTime>]
[-WindowsCredentials <PSCredential>] [-ServerName <String>] [-Force] [-Port <Int32>] [<CommonParameters>]
Detailed Description
This cmdlet publishes a backed-up PostgreSQL instance.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Force |
Defines that the cmdlet will replace the target PostgreSQL instance with the instance from the backup. Note: The cmdlet will show no prompt before executing the command. |
|
False |
Named |
False |
|
Instance |
Specifies a PostgreSQL instance that the cmdlet will publish.
Accepts the |
True |
0 |
True (ByValue) |
|
|
LinuxCredentials |
Specifies Linux credentials that the cmdlet will use to connect to the Linux machine.
Accepts the |
False |
Named |
True (ByValue) |
|
|
Port |
Specifies the port to connect to the published PostgreSQL instance. |
|
False |
Named |
False |
|
ServerName |
Specifies DNS name or IP address of the target PostgreSQL server. The cmdlet will publish a PostgreSQL instance to that server. |
|
False |
Named |
False |
|
SshPort |
Specifies the SSH port number. The cmdlet will use this port to connect to the Linux machine. Default: 22 |
|
False |
Named |
False |
|
ToPointInTimeUTC |
Specifies a point in time in the UTC format within the restore interval of the PostgreSQL instance. The cmdlet will publish the instance to the state of the specified point in time. |
|
False |
1 |
False |
|
WindowsCredentials |
Specifies Windows credentials that the cmdlet will use to connect to the Windows machine.
Accepts the |
|
False |
Named |
True (ByValue) |
<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 VEPSQLInstancePublish[] array that contains information about the publishing process for the PostgreSQL instance.
Examples
Example 1. Publishing PostgreSQL Instance to Linux Machine
|
This example shows how to publish a backed-up PostgreSQL instance to a Linux machine with PostgreSQL.
Perform the following steps:
|
Example 2. Publishing PostgreSQL Instance to Windows Machine
|
This example shows how to publish a backed-up PostgreSQL instance to a Windows machine with PostgreSQL.
Perform the following steps:
|
Related Commands
Get-VEPSQLRestoreSessionReturns active restore sessions started to perform operations with backed-up PostgreSQL instances.Get-VEPSQLInstanceReturns backed-up PostgreSQL instances.Read-HostNew-VEPSQLLinuxCredentialCreates a Linux credential record to connect to a target PostgreSQL server.Get-Credential