Restart-VEPSQLInstancePublish
Short Description
Restarts the failed publish process for backed-up PostgreSQL instances.
Applies to
Veeam Backup & Replication
Product Edition: Enterprise, Enterprise Plus, Veeam Universal License
Syntax
Restart-VEPSQLInstancePublish [-InstancePublish] <VEPSQLInstancePublish> [<CommonParameters>] |
Detailed Description
This cmdlet restarts the failed publish process for a PostgreSQL instance.
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|---|---|---|---|---|
InstancePublish | Specifies the PostgreSQL instance publish process. The cmdlet will restart this publish process. | Accepts the VEPSQLInstancePublish object. To get this object, run the Get-VEPSQLInstancePublish cmdlet. | True | 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.
Example
Restarting Publishing Process for a PostgreSQL Instance
This example shows how to restart the failed publish process for a PostgreSQL instance.
$session = Get-VEPSQLRestoreSession $instance = Get-VEPSQLInstance -Session $session[0] -DataDirectory /var/lib/pgsql/13/data $publish = Get-VEPSQLInstancePublish -InstanceName $instance Restart-VEPSQLInstanceRestore -InstanceRestore $restore |
Perform the following steps:
- 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.
- 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.
- Run the Get-VEPSQLInstancePublish cmdlet. Set the $instance variable as the InstanceName parameter value. Save the result to the $publish variable.
- Run the Restart-VEPSQLInstancePublish cmdlet. Set the $publish variable as the InstancePublish parameter value.
Related Commands