Get-VEPSQLInstancePublish

Short Description

Returns information about the publish process for backed-up PostgreSQL instances.

Applies to

Veeam Backup & Replication

Product Edition: Community, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Get-VEPSQLInstancePublish [-InstanceName <string>]  [<CommonParameters>]

Detailed Description

This cmdlet returns information about the publish process for a backed-up PostgreSQL instance.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

InstanceName

Specifies a name of the published PostgreSQL instance. The cmdlet will return information about the publish process performed for the specified instance.

String

False

0

True

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Docs.

Output Object

The cmdlet returns the VEPSQLInstancePublish object that contains information about the PostgreSQL instance publish process.

Example

Getting Information About the Publish Process for a PostgreSQL Instance

This example shows how to get information about the publish process for a backed-up PostgreSQL instance.

$session = Get-VEPSQLRestoreSession

$instance = Get-VEPSQLInstance -Session $session[0] -DataDirectory /var/lib/pgsql/13/data

Get-VEPSQLInstancePublish -InstanceName $instance

Perform the following steps:

  1. Run the Get-VEPSQLRestoreSession cmdlet. Save the result to the $session variable.

The Get-VEPSQLRestoreSession cmdlet will return an array of restore sessions. Note the ordinal number of the necessary restore session. In our example, it is the first restore session in the array.

  1. Run the Get-VEPSQLInstance cmdlet. Set the $session variable as the Session parameter value. Specify the DataDirectory parameter value. Save the result to the $instance variable.
  2. Run the Get-VEPSQLInstancePublish cmdlet. Set the $instance variable as the InstanceName parameter value.

Related Commands