Add-VBRApplicationBackupJob
Short Description
Creates application backup policies.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Add-VBRApplicationBackupJob [-Name <String>] [-Description <String>] -BackupObject <Object[]> -BackupRepository <CBackupRepository> [-BackupOptions <VBRApplicationBackupOptions>] [-RetentionPolicy <Int32>] [-EnableSchedule] [-ScheduleOptions <VBRApplicationScheduleOptions>] [-NotificationOptions <VBRNotificationOptions>] [-DatabaseProcessingOptions <VBRDatabaseProcessingOptions[]>] [-GFSOptions <VBRComputerGFSOptions>] [-SAPOnOracleMode <VBRSAPOnOracleMode>] [-SAPOnOracleStorageOptions <VBRSAPOnOracleStorageOptions>] [-SAPOnOracleOptions <VBRSAPOnOracleOptions>] [-OracleRMANStorageOptions <VBROracleRMANStorageOptions>] [-OracleRMANOptions <VBROracleRMANOptions>] [-SAPHANAOptions <VBRSAPHANAOptions>] [-SAPHANACredentialsOptions <VBRSAPHANACredentialsOptions[]>] [-SAPHANAStorageOptions <VBRSAPHANAStorageOptions>] [-MSSQLOptions <VBRMSSQLOptions>] [-MSSQLCredentialsOptions <VBRMSSQLCredentialsOptions[]>] [-MSSQLStorageOptions <VBRMSSQLStorageOptions>] [<CommonParameters>] |
Detailed Description
This cmdlet creates application backup policies.
To create application backup policies, you must specify a container object with discovered application entities (for example, individual computers, databases, protection groups, and so on) that you plan to back up and the target location for storing backups.
- Run the
Get-VBRProtectionGroupReturns protection groups. cmdlet to get the protection group. - Run the
Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet to get the repository. - Run the
Add-VBRApplicationBackupJobcmdlet to create application backup policy.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
BackupObject |
Specifies an array of discovered application entities: individual computers, databases, protection groups, and so on. The cmdlet will add these entities to the application backup policy.
Accepts the |
|
True |
Named |
False |
|
BackupOptions |
Specifies backup settings for the application backup policy.
Accepts the |
|
False |
Named |
False |
|
BackupRepository |
Specifies the target backup location for the application backup policy.
Accepts the |
|
True |
Named |
False |
|
DatabaseProcessingOptions |
Specifies database processing settings for the application backup policy.
Accepts the |
|
False |
Named |
False |
|
Description |
Specifies the description of the application backup policy. |
|
False |
Named |
False |
|
EnableSchedule |
Enables the option to schedule the application backup policy to run on a regular basis. |
|
False |
Named |
False |
|
GFSOptions |
Specifies GFS retention settings for the application backup policy.
Accepts the |
|
False |
Named |
False |
|
MSSQLCredentialsOptions |
Note: This option works only for Veeam Plug-In for Microsoft SQL Server. Specifies an array of the credentials for Veeam Plug-In for Microsoft SQL Server.
Accepts the |
|
False |
Named |
False |
|
MSSQLOptions |
Note: This option works only for Veeam Plug-In for Microsoft SQL Server. Specifies the backup settings for Veeam Plug-In for Microsoft SQL Server.
Accepts the |
|
False |
Named |
False |
|
MSSQLStorageOptions |
Note: This option works only for Veeam Plug-In for Microsoft SQL Server. Specifies the storage settings for Veeam Plug-In for Microsoft SQL Server.
Accepts the |
|
False |
Named |
False |
|
Name |
Specifies the name that you want to assign to the application backup policy. |
|
False |
Named |
False |
|
NotificationOptions |
Specifies notification settings for the application backup policy.
Accepts the |
False |
Named |
False |
|
|
OracleRMANOptions |
Note: This option works only for Veeam Plug-In for Oracle RMAN. Specifies the backup settings for Veeam Plug-In for Oracle RMAN.
Accepts the |
|
False |
Named |
False |
|
OracleRMANStorageOptions |
Note: This option works only for Veeam Plug-In for Oracle RMAN. Specifies the storage options for Veeam Plug-In for Oracle RMAN.
Accepts the |
|
False |
Named |
False |
|
RetentionPolicy |
Specifies the retention policy for backups created by Veeam Plug-In. Note: The retention policy specifies the number of restore points or a number of days. |
|
False |
Named |
False |
|
SAPHANACredentialsOptions |
Note: This option works only for Veeam Plug-In for SAP HANA. Specifies an array of the credentials for Veeam Plug-In for SAP HANA.
Accepts the |
|
False |
Named |
False |
|
SAPHANAOptions |
Note: This option works only for Veeam Plug-In for SAP HANA. Specifies the backup settings for Veeam Plug-In for SAP HANA.
Accepts the |
|
False |
Named |
False |
|
SAPHANAStorageOptions |
Note: This option works only for Veeam Plug-In for SAP HANA. Specifies the storage settings for Veeam Plug-In for SAP HANA.
Accepts the |
|
False |
Named |
False |
|
SAPOnOracleMode |
Note: This option works only for Veeam Plug-In for SAP on Oracle. Specifies the backup mode for Veeam Plug-In for SAP on Oracle:
|
|
False |
Named |
False |
|
SAPOnOracleOptions |
Note: This option works only for Veeam Plug-In for SAP on Oracle. Specifies the backup settings for Veeam Plug-In for SAP on Oracle.
Accepts the |
|
False |
Named |
False |
|
SAPOnOracleStorageOptions |
Note: This option works only for Veeam Plug-In for SAP on Oracle. Specifies the storage settings for Veeam Plug-In for SAP on Oracle.
Accepts the |
|
False |
Named |
False |
|
ScheduleOptions |
Specifies the settings for the application backup policy schedule.
Accepts the
|
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
This cmdlet returns the VBRApplicationBackupJob[] object that contains settings of application backup policies.
Examples
Creating Application Backup Policy for Veeam Plug-In for SAP HANA
This example shows how to create the application backup policy for Veeam Plug-In for SAP HANA.
|
$group = Get-VBRProtectionGroup -Name "Database Servers" $repository = Get-VBRBackupRepository -Name "Default Backup Repository" $backup_options = New-VBRApplicationBackupOptions -FullBackupScheduleType Weekly -WeeklyScheduleType SelectedDays -SelectedDays Sunday, Wednesday $daily = New-VBRDailyOptions -DayOfWeek Friday -Period 7:00 $schedule_options = New-VBRApplicationScheduleOptions -Type Daily -DailyOptions $daily $processing_settings = New-VBRSAPHANAProcessingOptions -RedoLogsBackupPeriod 60 -LogBackupMode VeeamManaged $db_processing_options = New-VBRDatabaseProcessingOptions -BackupObject $group -SAPHANAProcessingOptions $processing_settings $hana_options = New-VBRSAPHANAOptions -ParallelChannelsCount 3 $os_administrator = Get-VBRCredentials $db_hana_administrator = Get-VBRCredentials $hana_credentials = New-VBRSAPHANACredentialsOptions -SAPSystem SH4 -SSHCredentials $os_administrator -BackupCredentials $db_hana_administrator Add-VBRApplicationBackupJob -BackupObject $group -BackupRepository $repository -Name "Backup Job" -Description "Daily backup of SAP systems" -BackupOptions $backup_options -EnableSchedule -ScheduleOptions $schedule_options -DatabaseProcessingOptions $db_processing_options -SAPHANAOptions $hana_options -SAPHANACredentialsOptions $hana_credentials |
Perform the following steps:
- Get a protection group and a backup repository:
- Run the
Get-VBRProtectionGroupReturns protection groups. cmdlet. Specify theNameparameter value. Save the result to the$groupvariable. - Run the
Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet. Specify theNameparameter value. Save the result to the$repositoryvariable.
- Run the
- Define backup settings and backup schedule:
- Run the
New-VBRApplicationBackupOptionsCreates the backup settings and full backup schedule for application backup policies. cmdlet. Specify theFullBackupScheduleType,WeeklyScheduleTypeand theSelectedDaysparameter values. Save the result to the$backup_optionsvariable. - Run the
New-VBRDailyOptionsCreates new job daily schedule settings. cmdlet. Specify theDayOfWeekand thePeriodparameter values. Save the result to the$dailyvariable. - Run the
New-VBRApplicationScheduleOptionsCreates the schedule for application backup policies. cmdlet. Specify theTypeand theDailyOptionsparameter values. Save the result to the$schedule_optionsvariable.
- Run the
- Define processing and backup settings:
- Run the
Get-VBRCredentialsReturns credentials records. cmdlet. Save the result to the$db_administratorvariable. - Run the
New-VBRSAPHANAProcessingOptionsCreates the SAP HANA database processing settings for application backup policies. cmdlet. Specify theRedoLogsBackupPeriodandLogBackupModeparameter values. Save the result to the$processing_settingsvariable. - Run the
New-VBRDatabaseProcessingOptionsCreates the database processing settings for application backup policies. cmdlet. Specify theDayOfWeekand theSAPHANAProcessingOptionsparameter values. Save the result to the$db_processing_optionsvariable. - Run the
New-VBRSAPHANAOptionsCreates the SAP HANA backup settings for application backup policies. cmdlet. Specify theParallelChannelsCountparameter value. Save the result to the$hana_optionsvariable.
- Run the
- Get SAP HANA credentials settings:
- Run the
Get-VBRCredentialsReturns credentials records. cmdlet. Save the result to the$os_administratorvariable. - Run the
Get-VBRCredentialsReturns credentials records. cmdlet. Save the result to the$db_hana_administratorvariable. - Run the
New-VBRSAPHANACredentialsOptionsCreates the SAP HANA credentials settings for application backup policies. cmdlet. Specify theSAPSystem,SSHCredentialsand theBackupCredentialsparameter values. Save the result to the$hana_credentialsvariable.
- Run the
- Run the
Add-VBRApplicationBackupJobcmdlet. Specify the following settings:- Set the
$groupvariable as theBackupObjectparameter value. - Set the
$repositoryvariable as theBackupRepositoryparameter value. - Specify the
Nameparameter value. - Specify the
Descriptionparameter value. - Set the
$backup_optionsvariable as theBackupOptionsparameter value. - Provide the
EnableScheduleparameter. - Set the
$schedule_optionsvariable as theScheduleOptionsparameter value. - Set the
$db_processing_optionsvariable as theDatabaseProcessingOptionsparameter value. - Set the
$hana_optionsvariable as theSAPHANAOptionsparameter value. - Set the
$hana_credentialsvariable as theSAPHANACredentialsOptionsparameter value.
- Set the
Related Commands
Get-VBRProtectionGroupReturns protection groups.Get-VBRBackupRepositoryReturns a list of backup repositories.New-VBRApplicationBackupOptionsCreates the backup settings and full backup schedule for application backup policies.New-VBRApplicationScheduleOptionsCreates the schedule for application backup policies.New-VBRSAPHANAProcessingOptionsCreates the SAP HANA database processing settings for application backup policies.New-VBRDatabaseProcessingOptionsCreates the database processing settings for application backup policies.New-VBRSAPHANAOptionsCreates the SAP HANA backup settings for application backup policies.New-VBRSAPHANACredentialsOptionsCreates the SAP HANA credentials settings for application backup policies.