Stop-VEPSQLDatabaseExport
Short Description
Stops an active export session for a PostgreSQL database.
Product: Veeam Backup & Replication
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Stop-VEPSQLDatabaseExport [-Export] <VEPSQLDatabaseExport> [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet stops an active export session for a PostgreSQL database.
Note |
|
Export sessions will not stop automatically if you close the PowerShell console. To stop the export session, you must run the |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Export |
Specifies a PostgreSQL export session that you want to stop.
Accepts the |
True |
0 |
True (ByValue) |
|
|
Force |
Defines that the cmdlet will show no prompt before executing the command. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Examples
Stopping PostgreSQL Export Session
This example shows how to stop a PostgreSQL export session.
|
$export = Get-VEPSQLDatabaseExport Stop-VEPSQLDatabaseExport -Export $export[0] -Force |
Perform the following steps:
- Run the
Get-VEPSQLDatabaseExportReturns PostgreSQL databases with ongoing export sessions. cmdlet. Save the result to the$exportvariable.The cmdlet will return an array of active export sessions. Note the ordinal number of the necessary export session (in this example, it is the first export session in the array).
- Run the
Stop-VEPSQLDatabaseExportcmdlet. Set the$exportvariable as theExportparameter value and select the necessary export session. Provide theForceparameter.
Related Commands
Get-VEPSQLDatabaseExportReturns PostgreSQL databases with ongoing export sessions.Start-VEPSQLDatabaseExportStarts an export process for a backed-up or a published PostgreSQL database.