Get-VEPSQLInstanceRestore

Short Description

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

Applies to

Veeam Backup & Replication

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

Syntax

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

Detailed Description

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

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

InstanceName

Specifies a name of the restored PostgreSQL instance. The cmdlet will return information about the restore 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 VEPSQLInstanceRestore object that contains information about the PostgreSQL instance restore process.

Example

Getting Information About Restore Process for a PostgreSQL Instance

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

$session = Get-VEPSQLRestoreSession

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

Get-VEPSQLInstanceRestore -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-VEPSQLInstanceRestore cmdlet. Set the $instance variable as the InstanceName parameter value.

Related Commands