Restart-VEPSQLInstanceRestore

Short Description

Restarts the failed restore process for backed-up PostgreSQL instances.

Applies to

Veeam Backup & Replication

Product Edition: Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Restart-VEPSQLInstanceRestore [-InstanceRestore] <VEPSQLInstanceRestore>  [<CommonParameters>]

Detailed Description

This cmdlet restarts the failed restore process for a PostgreSQL instance.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

InstanceRestore

Specifies the PostgreSQL instance restore process. The cmdlet will restart this restore process.

Accepts the VEPSQLInstanceRestore object. To get this object, run the Get-VEPSQLInstanceRestore 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 Failed Restore Process for a PostgreSQL Instance

This example shows how to restart the failed restore process for a PostgreSQL instance.

$session = Get-VEPSQLRestoreSession

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

$restore = Get-VEPSQLInstanceRestore -InstanceName $instance

Restart-VEPSQLInstanceRestore -InstanceRestore $restore

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-VEPSQLInstanceRestore cmdlet. Set the $instance variable as the InstanceName parameter value. Save the result to the $restore variable.
  3. Run the Restart-VEPSQLInstanceRestore cmdlet. Set the $restore variable as the InstanceRestore parameter value.

Related Commands