Get-VEPSQLInstanceRestoreInterval
Short Description
Returns details on the available restore period for a backed-up PostgreSQL instance.
Applies to
Veeam Backup & Replication
Product Edition: Enterprise, Enterprise Plus, Veeam Universal License
Syntax
Get-VEPSQLInstanceRestoreInterval [-Instance] <VEPSQLInstance> [<CommonParameters>] |
Detailed Description
This cmdlet returns details on available restore period for a backed-up PostgreSQL instance.
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|---|---|---|---|---|
Instance | Specifies a backed-up PostgreSQL instance. The cmdlet will return information on the available restore period for the specified instance. | Accepts the VEPSQLInstance object. To get this object, run the Get-VEPSQLInstance cmdlet. | True | 0 | True (ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Output Object
The cmdlet returns the VEPSQLInstanceRestoreInterval object that contains details on available restore period for backed-up PostgreSQL instances.
Example
Getting Restore Period for PostgreSQL Instance
This example shows how to get details on an available restore period for the PostgreSQL instance.
$session = Get-VEPSQLRestoreSession $instance = Get-VEPSQLInstance -Session $session[0] -DataDirectory /var/lib/pgsql/13/data Get-VEPSQLInstanceRestoreInterval -Instance $instance |
Perform the following steps:
- Run the Get-VEPSQLRestoreSession cmdlet. Save the result to the $session variable.
- 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-VEPSQLInstanceRestoreInterval cmdlet. Set the $instance variable as the Instance parameter value.
Related Commands