Get-VEPSQLPublishedDatabase
Short Description
Returns published PostgreSQL databases.
Applies to
Veeam Backup & Replication
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
Get-VEPSQLPublishedDatabase [[-Name] <String[]>] [[-InstanceName] <String[]>] [[-ServerName] <String[]>] [<CommonParameters>] |
Detailed Description
This cmdlet returns an array of published PostgreSQL databases. Once you get the necessary PostgreSQL database, you can use Start-VEPSQLDatabaseExport cmdlet to export it.
Note that you will only get an array of PostgreSQL databases published with PowerShell. The cmdlet does not return PostgreSQL databases published in the Veeam Backup & Replication console.
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|---|---|---|---|---|
Name | Specifies an array of names of PostgreSQL databases. The cmdlet will return an array of databases with the specified names. | String[] | False | 0 | False |
InstanceName | Specifies an array of names of PostgreSQL instances. The cmdlet will return an array of databases on the specified instances. | String[] | False | 1 | False |
ServerName | Specifies an array of names of target PostgreSQL servers. The cmdlet will return an array of databases published on the specified servers. | 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 VEPSQLPublishedDatabase[] object that contains settings of published PostgreSQL databases.
Examples
Example 1. Getting All Published PostgreSQL Databases
This example shows how to get an array of all published PostgreSQL databases.
|
Example 2. Getting All Published PostgreSQL Databases with Specific Names Belonging to Specific Instances
This example shows how to get an array of published PostgreSQL databases with specific names belonging to specific instances on the backup file.
Perform the following steps:
|
Example 3. Getting All PostgreSQL Databases Published on Specific Servers
This example shows how to get an array of all PostgreSQL databases published on the specified servers.
Perform the following steps:
|