Get-VEPSQLTablespace
Short Description
Returns tablespaces for a backed-up PostgreSQL instance.
Product: Veeam Backup & Replication
Product Edition: Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Get-VEPSQLTablespace [-Instance] <VEPSQLInstance> [<CommonParameters>] |
Detailed Description
This cmdlet returns an array of tablespaces for a backed-up PostgreSQL instance.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Instance |
Specifies a PostgreSQL instance. The cmdlet will return an array of tablespaces for the specified instance.
Accepts the |
True |
0 |
True (ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Output Object
The cmdlet returns the VEPSQLTableSpace[] array that contains tablespaces for the specified instance.
Examples
Getting Tablespaces of PostgreSQL Instance
This example shows how to get an array of tablespaces for a backed-up PostgreSQL instance.
|
$session = Get-VEPSQLRestoreSession $instance = Get-VEPSQLInstance -Session $session[0] -DataDirectory /var/lib/pgsql/13/data Get-VEPSQLTablespace -Instance $instance |
Perform the following steps:
- Run the
Get-VEPSQLRestoreSessionReturns active restore sessions started to perform operations with backed-up PostgreSQL instances. cmdlet. Save the result to the$sessionvariable.The cmdlet will return an array of active restore sessions. Note the ordinal number of the necessary restore session. In this example, it is the first restore session in the array.
- Run the
Get-VEPSQLInstanceReturns backed-up PostgreSQL instances. cmdlet. Set the$sessionvariable as theSessionparameter value. Specify theDataDirectoryparameter value. Save the result to the$instancevariable. - Run the
Get-VEPSQLTablespacecmdlet. Set the$instancevariable as theInstanceparameter value.
Related Commands
Get-VEPSQLRestoreSessionReturns active restore sessions started to perform operations with backed-up PostgreSQL instances.Get-VEPSQLInstanceReturns backed-up PostgreSQL instances.