Get-VEPSQLDatabase
Short Description
Returns backed-up PostgreSQL databases.
Applies to
Veeam Backup & Replication
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
Get-VEPSQLDatabase [-Session] <VEPSQLRestoreSession> [[-Name] <String[]>] [[-InstanceName] <String[]>] [<CommonParameters>] |
Detailed Description
This cmdlet returns an array of backed-up PostgreSQL databases.
After you get the backed-up PostgreSQL databases, you can use the Start-VEPSQLDatabaseExport cmdlet to export the necessary databases.
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|---|---|---|---|---|
Session | Specifies an active restore session. The cmdlet will return an array of databases within the specified restore session. | Accepts the VEPSQLRestoreSession object. To get this object, run the Get-VEPSQLRestoreSession cmdlet. | True | 0 | True (ByValue) |
Name | Specifies an array of names of PostgreSQL databases. The cmdlet will return an array of databases with the specified names. | String[] | False | 1 | False |
InstanceName | Specifies an array of names of PostgreSQL instances. The cmdlet will return an array of databases located on the specified instances. | String[] | False | 2 | False |
<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 VEPSQLDatabase[] object that contains an array of backed-up PostgreSQL databases.
Examples
Example 1. Getting All PostgreSQL Databases Within Specified Restore Session
This example shows how to get an array of all PostgreSQL databases within the specified restore session.
Perform the following steps:
The cmdlet will return an array of active restore sessions. Note the ordinal number of the necessary restore session (in our example, it is the second restore session in the array).
|
Example 2. Getting PostgreSQL Databases With Specified Names
This example shows how to get an array of PostgreSQL databases with the specified names.
Perform the following steps:
The cmdlet will return an array of active restore sessions. Note the ordinal number of the necessary restore session. In our example, it is the first restore session in the array.
|
Example 3. Getting All PostgreSQL Databases on Specified Instances
This example shows how to get all PostgreSQL databases on specific instances.
Perform the following steps:
The cmdlet will return an array of active restore sessions. Note the ordinal number of the necessary restore session. In our example, it is the first restore session in the array.
|
Related Commands