Start-VEPSQLDatabaseExport
Short Description
Starts an export process for a backed-up or a published PostgreSQL database.
Product: Veeam Backup & Replication
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
WindowsBackedUpDatabaseExportToLinuxLocalhostTargetStart-VEPSQLDatabaseExport [-Database] <VEPSQLDatabase> [-StagingServerName] <String>
[-WindowsStagingCredentials] <PSCredential> [-ToPointInTimeUTC <DateTime>] -Path <String>
[-DisableCompression] [-LinuxTargetCredentials] <VEPSQLLinuxCredential> [-Force] [<CommonParameters>]
-
WindowsBackedUpDatabaseExportToWindowsLocalhostTargetStart-VEPSQLDatabaseExport [-Database] <VEPSQLDatabase> [-StagingServerName] <String>
[-WindowsStagingCredentials] <PSCredential> [-ToPointInTimeUTC <DateTime>] -Path <String>
[-DisableCompression] [-WindowsTargetCredentials] <PSCredential> [-Force] [<CommonParameters>]
-
WindowsBackedUpDatabaseExportToLinuxTargetStart-VEPSQLDatabaseExport [-Database] <VEPSQLDatabase> [-StagingServerName] <String>
[-WindowsStagingCredentials] <PSCredential> [-ToPointInTimeUTC <DateTime>] -Path <String>
[-DisableCompression] [-LinuxTargetCredentials] <VEPSQLLinuxCredential> [-LinuxTargetHost] <String>
[-LinuxTargetSshPort <Int32>] [-Force] [<CommonParameters>]
-
WindowsBackedUpDatabaseExportToWindowsTargetStart-VEPSQLDatabaseExport [-Database] <VEPSQLDatabase> [-StagingServerName] <String>
[-WindowsStagingCredentials] <PSCredential> [-ToPointInTimeUTC <DateTime>] -Path <String>
[-DisableCompression] [-WindowsTargetCredentials] <PSCredential> [-WindowsTargetHost] <String> [-Force] [<CommonParameters>]
-
LinuxBackedUpDatabaseExportToLinuxLocalhostTargetStart-VEPSQLDatabaseExport [-Database] <VEPSQLDatabase> [-StagingServerName] <String>
[-LinuxStagingCredentials] <VEPSQLLinuxCredential> [-StagingSshPort <Int32>] [-ToPointInTimeUTC <DateTime>]
-Path <String> [-DisableCompression] [-LinuxTargetCredentials] <VEPSQLLinuxCredential> [-Force] [<CommonParameters>]
-
LinuxBackedUpDatabaseExportToWindowsLocalhostTargetStart-VEPSQLDatabaseExport [-Database] <VEPSQLDatabase> [-StagingServerName] <String>
[-LinuxStagingCredentials] <VEPSQLLinuxCredential> [-StagingSshPort <Int32>] [-ToPointInTimeUTC <DateTime>]
-Path <String> [-DisableCompression] [-WindowsTargetCredentials] <PSCredential> [-Force] [<CommonParameters>]
-
LinuxBackedUpDatabaseExportToLinuxTargetStart-VEPSQLDatabaseExport [-Database] <VEPSQLDatabase> [-StagingServerName] <String>
[-LinuxStagingCredentials] <VEPSQLLinuxCredential> [-StagingSshPort <Int32>] [-ToPointInTimeUTC <DateTime>]
-Path <String> [-DisableCompression] [-LinuxTargetCredentials] <VEPSQLLinuxCredential>
[-LinuxTargetHost] <String> [-LinuxTargetSshPort <Int32>] [-Force] [<CommonParameters>]
-
LinuxBackedUpDatabaseExportToWindowsTargetStart-VEPSQLDatabaseExport [-Database] <VEPSQLDatabase> [-StagingServerName] <String>
[-LinuxStagingCredentials] <VEPSQLLinuxCredential> [-StagingSshPort <Int32>] [-ToPointInTimeUTC <DateTime>]
-Path <String> [-DisableCompression] [-WindowsTargetCredentials] <PSCredential> [-WindowsTargetHost] <String>
[-Force] [<CommonParameters>]
-
PublishedDatabaseExportToLinuxLocalhostTargetStart-VEPSQLDatabaseExport [-PublishedDatabase] <VEPSQLPublishedDatabase> -Path <String> [-DisableCompression]
[-LinuxTargetCredentials] <VEPSQLLinuxCredential> [-Force] [<CommonParameters>]
-
PublishedDatabaseExportToWindowsLocalhostTargetStart-VEPSQLDatabaseExport [-PublishedDatabase] <VEPSQLPublishedDatabase> -Path <String> [-DisableCompression]
[-WindowsTargetCredentials] <PSCredential> [-Force] [<CommonParameters>]
-
PublishedDatabaseExportToLinuxTargetStart-VEPSQLDatabaseExport [-PublishedDatabase] <VEPSQLPublishedDatabase> -Path <String> [-DisableCompression]
[-LinuxTargetCredentials] <VEPSQLLinuxCredential> [-LinuxTargetHost] <String> [-LinuxTargetSshPort <Int32>]
[-Force] [<CommonParameters>]
-
PublishedDatabaseExportToWindowsTargetStart-VEPSQLDatabaseExport [-PublishedDatabase] <VEPSQLPublishedDatabase> -Path <String> [-DisableCompression]
[-WindowsTargetCredentials] <PSCredential> [-WindowsTargetHost] <String> [-Force] [<CommonParameters>]
Detailed Description
This cmdlet starts an export process for a backed-up or a published PostgreSQL database. You can export the necessary PostgreSQL database to the local host where the PowerShell session is running or any Windows or Linux server.
After you run the Start-VEPSQLDatabaseExport cmdlet, you can use the following cmdlets:
Get-VEPSQLDatabaseExportReturns PostgreSQL databases with ongoing export sessions.Restart-VEPSQLDatabaseExportRestarts a failed export process for a backed-up PostgreSQL database.Stop-VEPSQLDatabaseExportStops an active export session for a PostgreSQL database.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Database |
Specifies a backed-up PostgreSQL database. The cmdlet will export this database.
Accepts the |
True |
0 |
True (ByValue) |
|
|
DisableCompression |
Defines that the cmdlet will not compress the output file. |
|
False |
Named |
False |
|
Force |
Defines that the cmdlet will overwrite the existing PostgreSQL database files with the database files from the backup. If you provide this parameter, the cmdlet will show no prompt before executing the command. |
|
False |
Named |
False |
|
LinuxStagingCredentials |
Specifies the credentials for the Linux-based staging server.
Accepts the |
True |
1 |
True (ByValue) |
|
|
LinuxTargetCredentials |
Specifies the credentials for the target Linux machine.
Accepts the |
True |
3 |
True (ByValue) |
|
|
LinuxTargetHost |
Specifies the name of the target Linux server. |
|
True |
4 |
True (ByValue) |
|
LinuxTargetSshPort |
Specifies the SSH port number. The cmdlet will use this port to connect to the target Linux machine. |
|
False |
Named |
False |
|
Path |
Specifies the target path. The cmdlet will export a database to the location specified in this path. Note: This parameter works for both Windows and Linux target machines. |
|
True |
Named |
False |
|
PublishedDatabase |
Specifies a published PostgreSQL database. The cmdlet will export this database.
Accepts the |
True |
0 |
True (ByValue) |
|
|
StagingServerName |
Specifies DNS name or IP address of the staging server. |
|
True |
2 |
True (ByValue) |
|
StagingSshPort |
Specifies the SSH port number. The cmdlet will use this port to connect to the staging Linux machine. |
|
False |
Named |
False |
|
ToPointInTimeUTC |
Specifies the point in time in the UTC format within a restore interval of the PostgreSQL database. The cmdlet will export the specified database to the state of the specified point in time. If you do not use this parameter, the cmdlet will export the database to the point in time when the restore point for which you started the restore session was created. |
|
False |
Named |
False |
|
WindowsStagingCredentials |
Specifies the credentials for the Windows-based staging server.
Accepts the |
|
True |
1 |
True (ByValue) |
|
WindowsTargetCredentials |
Specifies the credentials for the target Windows machine.
Accepts the |
|
True |
3 |
True (ByValue) |
|
WindowsTargetHost |
Specifies the name of the target Windows server. |
|
True |
4 |
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 VEPSQLDatabaseExport object that contains information about the specified export session.
Examples
Example 1. Exporting Latest State of Published Database to Windows Host
|
This example shows how to export a published database to a Windows server, using its latest state on the backup file.
Perform the following steps:
|
Example 2. Exporting Point-in-Time State of Backed-Up Database to Another Linux Server
|
This example shows how to export a backed-up PostgreSQL database to a Linux server, using a point-in-time state on the backup file.
Perform the following steps:
|
Example 3. Exporting Latest State of Backed-Up Database from Windows Machine to Another Windows Server
|
This example shows how to export a backed-up PostgreSQL database from a Windows machine to another Windows server, using its latest state on the backup file.
Perform the following steps:
|
Example 4. Exporting Published Database to Another Linux Server
|
This example shows how to export a published PostgreSQL database to another Linux server.
Perform the following steps:
|
Related Commands
Get-VEPSQLRestoreSessionReturns active restore sessions started to perform operations with backed-up PostgreSQL instances.Get-DateGet-VEPSQLDatabaseReturns backed-up PostgreSQL databases.Get-VEPSQLPublishedDatabaseReturns published PostgreSQL databases.Read-HostNew-VEPSQLLinuxCredentialCreates a Linux credential record to connect to a target PostgreSQL server.Get-Credential