Set-VBRAzureComputeBackupCopyJob
Short Description
Modifies Azure IaaS backup copy jobs.
Product Edition: Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRAzureComputeBackupCopyJob -Job <CBackupJob> [-Name <String>] [-Description <String>] [-Backup <VBRAzureComputeBackup[]>] [-Repository <CBackupRepository>] [-RecoveryPointObjective <VBRRecoveryPointObjective>] [-RetentionPolicy <VBRRetentionPolicy>] [-BackupWindowOptions <VBRBackupWindowOptions>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies Azure IaaS backup copy jobs.
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Backup |
Specifies an array of Azure backups that you want to copy.
Accepts the |
|
False |
Named |
False |
|
BackupWindowOptions |
Specifies the period of time when a backup copy job is allowed to run.
Accepts the |
False |
Named |
False |
|
|
Description |
Specifies a description of a backup copy job. The cmdlet will create the job with this description. |
|
False |
Named |
False |
|
Job |
Specifies an Azure backup copy job. The cmdlet will modify this job.
Accepts the |
|
True |
Named |
True (ByValue) |
|
Name |
Specifies a name of a backup copy job. The cmdlet will create the job with this name. |
|
False |
Named |
False |
|
RecoveryPointObjective |
Specifies a backup copy interval. The cmdlet will copy new restore points of Azure IaaS backup copy jobs to the target backup repository.
Accepts the |
|
False |
Named |
False |
|
Repository |
Specifies a target backup repository. The cmdlet will copy Azure backups to this repository.
Accepts the |
|
False |
Named |
False |
|
RetentionPolicy |
Specifies a number of restore points to keep on a target backup repository.
Accepts the |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRAzureComputeBackupCopyJob object that contains an array of Azure IaaS backup copy jobs.
Examples
Modifying Backup Repository of Azure Backup Copy Job
This example shows how to modify a backup repository of an Azure backup copy job.
|
$copyjob = Get-VBRJob -Name "Azure backup copy" $repository = Get-VBRBackupRepository Set-VBRAzureComputeBackupCopyJob -Job $copyjob -Repository $repository |
Perform the following steps:
- Run the
Get-VBRJobReturns existing jobs. cmdlet. Specify theNameparameter value. Save the result to the$copyjobvariable. - Run the
Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet. Save the result to the$repositoryvariable. - Run the
Set-VBRAzureComputeBackupCopyJobcmdlet. Set the$copyjobvariable as theJobparameter value. Set the$repositoryvariable as theRepositoryparameter value.
Related Commands
Get-VBRJobReturns existing jobs.Get-VBRBackupRepositoryReturns a list of backup repositories.