Restore-VEHANADatabase
Short Description
Restores a backed-up SAP HANA database.
Applies to
Veeam Backup & Replication
Product Edition: Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides parameter sets that allow you to:
- Restore a tenant SAP HANA database to another server using a point in time state of the backup file.
Restore-VEHANADatabase -TargetServerName <String> -TargetSystemName <String> [-TargetDatabaseName <String>][-Database] <VEHANADatabase> -PointInTime <DateTime> -TimeZone <TimeZoneInfo> [-TargetSystemUserPassword <SecureString>] [-GuestCredential <PSCredential>] [-ApplicationCredential <PSCredential>] [-UseHttps <SwitchParameter>] [-UseSSL <SwitchParameter>] [-ClientCertificatePath <String>] [-ClientCertificatePassword <SecureString>] [-Force <SwitchParameter>] [<CommonParameters>] |
- Restore a tenant SAP HANA database to another server using a specific backup.
Restore-VEHANADatabase -TargetServerName <String> -TargetSystemName <String> [-TargetDatabaseName <String>] [-Backup] <VEHANABackupCatalogItem> [-TargetSystemUserPassword <SecureString>][-GuestCredential <PSCredential>] [-ApplicationCredential <PSCredential>] [-UseHttps <SwitchParameter>] [-UseSSL <SwitchParameter>] [-ClientCertificatePath <String>] [-ClientCertificatePassword <SecureString>] [-Force <SwitchParameter>] [<CommonParameters>] |
- Restore a tenant SAP HANA database to another server using a backup prefix.
Restore-VEHANADatabase -TargetServerName <String> -TargetSystemName <String> [-TargetDatabaseName <String>] [-Database] <VEHANADatabase> -Prefix <String> [-TargetSystemUserPassword <SecureString>] [-GuestCredential <PSCredential>] [-ApplicationCredential <PSCredential>] [-UseHttps <SwitchParameter>] [-UseSSL <SwitchParameter>] [-ClientCertificatePath <String>] [-ClientCertificatePassword <SecureString>] [-Force <SwitchParameter>] [<CommonParameters>] |
- Restore an SAP HANA database to the original server using the latest state of the backup file.
Restore-VEHANADatabase [-Database] <VEHANADatabase> [-TargetSystemUserPassword <SecureString>] [-GuestCredential <PSCredential>] [-ApplicationCredential <PSCredential>] [-UseHttps <SwitchParameter>] [-UseSSL <SwitchParameter>] [-ClientCertificatePath <String>] [-ClientCertificatePassword <SecureString>] [-Force <SwitchParameter>] [<CommonParameters>] |
- Restore an SAP HANA database to the original server using a point in time state of the backup file.
Restore-VEHANADatabase [-Database] <VEHANADatabase> -PointInTime <DateTime> -TimeZone <TimeZoneInfo> [-TargetSystemUserPassword <SecureString>] [-GuestCredential <PSCredential>] [-ApplicationCredential <PSCredential>] [-ClearLog <SwitchParameter>] [-UseHttps <SwitchParameter>] [-UseSSL <SwitchParameter>] [-ClientCertificatePath <String>] [-ClientCertificatePassword <SecureString>] [-Force <SwitchParameter>] [<CommonParameters>] |
- Restore an SAP HANA database to the original server using a backup prefix.
Restore-VEHANADatabase [-Database] <VEHANADatabase> -Prefix <String> [-TargetSystemUserPassword <SecureString>] [-GuestCredential <PSCredential>] [-ApplicationCredential <PSCredential>] [-UseHttps <SwitchParameter>] [-UseSSL <SwitchParameter>] [-ClientCertificatePath <String>] [-ClientCertificatePassword <SecureString>] [-Force <SwitchParameter>] [<CommonParameters>] |
- Restore an SAP HANA database to the original server using a specific backup.
Restore-VEHANADatabase [-Backup] <VEHANABackupCatalogItem> [-TargetSystemUserPassword <SecureString>] [-GuestCredential <PSCredential>] [-ApplicationCredential <PSCredential>] [-UseHttps <SwitchParameter>] [-UseSSL <SwitchParameter>] [-ClientCertificatePath <String>] [-ClientCertificatePassword <SecureString>] [-Force <SwitchParameter>] [<CommonParameters>] |
Detailed Description
This cmdlet restores a backed-up SAP HANA database. After you start a restore job, you can use the Get-VEHANARestoreJobActionLogItems cmdlet to get an overview of the restore process. You can also stop the restore process with the Stop-VEHANARestoreJob cmdlet or restart a failed restore job using the Restart-VEHANADatabaseRestore cmdlet.
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|---|---|---|---|---|
Backup | Specifies an SAP HANA backup from the backup catalog. | Accepts the VEHANABackupCatalogItem object. To get this object, run the Get-VEHANABackupCatalogItem cmdlet. | True | 0 | True (ByValue) |
Database | Specifies an SAP HANA database. The cmdlet will start a restore job for the specified database. | Accepts the VEHANADatabase object. To get this object, run the Get-VEHANADatabase cmdlet. | True | 0 | True (ByValue) |
ApplicationCredential | Specifies the credentials for the target SAP HANA system. Note: This parameter is obligatory when the plug-in on the target machine is managed by a standalone Veeam Plug-in for SAP HANA. | Accepts the PSCredential object. To get this object, run the Get-Credential cmdlet. | False | Named | False |
ClearLog | Clears the log area and restores the database as of the last log backup before the selected point in time. Note: To ensure stable operation of the database on the target system, this parameter is automatically used when restoring a tenant SAP HANA database to another server. | SwitchParameter | False | Named | False |
ClientCertificatePassword | Specifies the password of the private key used for client validation. A password is only required if the certificate was exported with password protection enabled. | SecureString | False | Named | False |
ClientCertificatePath | Specifies the path of the private key used for client validation. | String | False | Named | False |
Force | Defines that the cmdlet will overwrite an existing SAP HANA database with an SAP HANA database from the backup. Note: The cmdlet will show no prompt before executing the command. | SwitchParameter | False | Named | False |
GuestCredential | Specifies the credentials for the target SAP HANA server. Note: This parameter is obligatory when the plug-in on the target machine is managed by a standalone Veeam Plug-in for SAP HANA. | Accepts the PSCredential object. To get this object, run the Get-Credential cmdlet. | False | Named | False |
PointInTime | Specifies a point in time in the backup file. The cmdlet will restore the database to the state of the specified point in time. Note: You must specify the time zone of the selected point in time using the TimeZone parameter. | DateTime | True | Named | False |
Prefix | Specifies the backup prefix of the SAP HANA backup you want to use. | String | True | Named | False |
TargetDatabaseName | Specifies the name of the restored database on the target server. | String | False | Named | False |
TargetServerName | Specifies the name of the target server. | String | True | Named | False |
TargetSystemName | Specifies the name of the target system. | String | True | Named | False |
TargetSystemUserPassword | Specifies the SYSTEM database user password for the newly created database on the target server. Note: This parameter is only required if the restore process creates a new database on the target server. | SecureString | False | Named | False |
TimeZone | Specifies the time zone of the point in time state to which you want to restore your data. | TimeZoneInfo | True | Named | False |
UseHTTPS | Defines that Veeam Explorer for SAP HANA will use the HTTPS protocol for establishing a connection to the target SAP HANA server. | SwitchParameter | False | Named | False |
UseSSL | Defines that Veeam Explorer for SAP HANA will use the SSL protocol for establishing a connection to the target SAP HANA system. | SwitchParameter | False | Named | 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 VEHANARestore object, that contains information about the status of the SAP HANA restore job.
Examples
Example 1. Restoring Latest State to Original Location
This example shows how to restore an SAP HANA database to the original location. Note that in this example, the plug-in on the SAP HANA machine is managed by a protection group in Veeam Backup & Replication, so the GuestCredential and ApplicationCredential parameters are not used. The cmdlet will use the credentials specified in the backup policy.
Perform the following steps:
The cmdlet will return an array of restore sessions. Note the ordinal number of the necessary restore session. In our example, it is the first restore session in the array.
Save the result to the $restore variable to be able to use it with other cmdlets. |
Example 2. Restoring Point in Time State to Original Location
This example shows how to restore a point in time state of an SAP HANA database to the original server. Note that in this example, the plug-in on the SAP HANA machine is managed by a protection group in Veeam Backup & Replication, so the GuestCredential and ApplicationCredential parameters are not used. The cmdlet will use the credentials specified in the backup policy.
Perform the following steps:
The cmdlet will return an array of restore sessions. Note the ordinal number of the necessary restore session. In our example, it is the first restore session in the array.
Save the result to the $restore variable to be able to use it with other cmdlets. |
Example 3. Restoring a Tenant Database to Another Server Using Backup Prefix
This example shows how to restore a tenant SAP HANA database to another server using a backup prefix. This example uses secure restore. Note that Veeam Plug-in for SAP HANA must be installed and properly configured on the target server, and the plug-in account must have the necessary permissions. For more information, see the Considerations and Limitations section of the Veeam Explorers User Guide.
Perform the following steps:
The cmdlet will return an array of restore sessions. Note the ordinal number of the necessary restore session. In our example, it is the first restore session in the array.
Save the result to the $restore variable to be able to use it with other cmdlets. |
Example 4. Restoring Tenant Database to Another Server Using Specific Backup
This example shows how to restore a tenant SAP HANA database to another server using a backup prefix. This example uses secure restore. Note that Veeam Plug-in for SAP HANA must be installed and properly configured on the target server, and the plug-in account must have the necessary permissions. For more information, see the Considerations and Limitations section of the Veeam Explorers User Guide.
Perform the following steps:
The cmdlet will return an array of restore sessions. Note the ordinal number of the necessary restore session. In our example, it is the first restore session in the array.
Save the result to the $restore variable to be able to use it with other cmdlets. |
Related Commands