Set-VBRViReplicaJob
Short Description
Modifies VMware replication jobs.
Applies to
Platform: VMware
For Hyper-V, run Set-VBRHvReplicaJob.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Set-VBRViReplicaJob -Job <CBackupJob> [-Name <string>] [-Server <Object>] [-Entity <IViItem[]>] [-Datastore <VBRViDatastoreBase>] [-ResourcePool <CViResourcePoolItem>] [-Folder <CViFolderItem>] [-Suffix <string>] [-BackupRepository <CBackupRepository>] [-Description <string>] [-EnableNetworkMapping] [-SourceNetwork <VBRViNetworkInfo[]>] [-TargetNetwork <VBRViNetworkInfo[]>] [-SourceProxy <CViProxy[]>] [-TargetProxy <CViProxy[]>] [-UseWANAccelerator] [-SourceWANAccelerator <CWanAccelerator>] [-TargetWANAccelerator <CWanAccelerator>] [-RestorePointsToKeep <int>] [-ReplicateFromBackup] [-SourceRepository <CBackupRepository[]>] [-EnableReIp] [-ReIpRule <VBRViReplicaReIpRule[]>] [-DiskType <EDiskCreationMode> {Source | Thick | Thin | ThickEagerZeroed}] [-EnableSeeding] [-RepositorySeed <CBackupRepository>] [-EnableVMMapping] [-OriginalVM <CViVmItem[]>] [-ReplicaVM <CViVmItem[]>] [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet modifies an existing VMware replication job. To modify settings, you need to enter the corresponding parameters with new values. The parameters that you omit will remain unchanged.
Starting from Veeam Backup & Replication version 9.5 Update 3, the cmdlet checks if the data of the VMs added to the job changes its geographical location.
|
The cmdlet will not run if the geographical location of the VMs added to the job and the target host location do not match. If you still want to run the cmdlet, use the Force parameter. |
Parameters
Parameter | Description | Required | Position | Accept | Accept |
Job | Specifies the replication job you want to modify. | True | Named | True (ByValue, | False |
Name | Specifies the name you want to assign to the replication job. | False | Named | False | False |
Server | Specifies the target host where the created replica will be stored. | True | Named | False | False |
Entity | Specifies the array of VMs you want to add to this job. | True | Named | True (ByValue, | False |
Datastore | Specifies the datastore to which you want to replicate. | False | Named | False | False |
Resource | Specifies the resource pool to which you want to replicate. | False | Named | False | False |
Folder | Specifies the folder to which you want to replicate. | False | Named | False | False |
Suffix | Specifies the suffix that will be appended to the name of the VM you are replicating. This name will be used to register the replicated VM on the target server. Default: "_replica". | False | Named | False | False |
Backup | Specifies the backup repository that will be used to store replica metadata files. Default: default backup repository. | False | Named | False | False |
Description | Specifies the description of the new job. | False | Named | False | False |
Enable | Indicates that the network mapping must be used. Use the SourceNetwork and the TargetNetwork parameters to set the network mapping rules. | False | Named | False | False |
Source | For network mapping. Specifies the array of production networks to which the VMs in the job are connected. Accepts VBRViNetworkInfo type. NOTE: the number of the source and the target networks must be the same. | False | Named | False | False |
Target | For network mapping. Specifies the array of networks in the DR site. The replicated VMs will be connected to these networks. Accepts VBRViNetworkInfo type. NOTE: the number of the source and the target networks must be the same. | False | Named | False | False |
Source | Specifies the source proxy you want to assign to the job. Default: automatic selection. | False | Named | False | False |
Target | Specifies the target proxy you want to assign to the job. Default: automatic selection. | False | Named | False | False |
UseWAN | Indicates that the data will be transferred via WAN accelerators. Use the SourceWANAccelerator and TargetWANAccelerator parameters to set the pair of WAN accelerators. | False | Named | False | Fals |
Source | Specifies the WAN accelerator configured in the source site that will be used for data transfer. Remember to set the pair of source and target WAN accelerators. Default: not set. | False | Named | False | False |
Target | Specifies the WAN accelerator configured in the target site that will be used for data transfer. Remember to set the pair of source and target WAN accelerators. Default: not set. | False | Named | False | False |
Restore | Specifies the number of restore points you want to keep. Permitted values: 1 to 28. Default: 7. | False | Named | False | False |
Replicate | For building replica from backup files. If set to $true, the job will use the backups in repository to build the replica. Use the SourceRepository parameter to set the repository. | False | Named | False | False |
Source | For building replica from backup files. Specifies the backup repository that will be used to read the VM data from the already existing backup chain. | False | Named | False | False |
EnableReIp | Indicates that the re-IP rules must be used. Use the ReIpRule parameter to set the re-IP rules. | False | Named | False | False |
ReIpRule | Specifies the re-IP rules. Accepts VBRViReplicaReIpRule type. | False | Named | False | False |
DiskType | Specifies the format that will be used to restore replica disk files:
Default: Source. | False | Named | False | False |
EnableSeeding | Indicates that the replication job will use seeding. | False | Named | False | False |
RepositorySeed | For replica seeding. Specifies the backup repository where the seed (the full backup) resides. | False | Named | True (ByValue, | False |
EnableVMMapping | Indicates that the replication job will use replica mapping. | False | Named | False | False |
OriginalVM | For replica mapping. Specifies the production VM you want to replicate using replica mapping. The replication job will map this VM to a selected replica VM on the DR site. Use the ReplicaVM parameter to specify the replica VM on the DR site. | False | Named | True (ByValue, | False |
ReplicaVM | For replica mapping. Specifies the VM on the DR site you want to use as the replication target. The replication job will map the production VM to this VM. Use the OriginalVM parameter to specify the production VM. | False | Named | True (ByValue, | False |
Force | Indicates that the cmdlet will modify the job even if the geographical location of the VMs added to the job and the target host location do not match. | False | Named | False | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Example 1
This example shows how to configure a re-IP rule for a replication job.
- Run Get-VBRJob to get the replication job and save it to the $job variable.
- Run New-VBRViReplicaReIpRule to create a new re-IP rule. Save it to the $reiprule variable.
- Run Set-VBRViReplicaJob. Use $job and $reiprule variables.
$job = Get-VBRJob -Name "Apache Replication" $reiprule = New-VBRViReplicaReIpRule -SourceIp 172.16.*.* -SourceMask 255.255.0.0 -TargetIp 172.17.*.* -TargetMask 255.255.0.0 -TargetGateway 172.17.0.1 Set-VBRViReplicaJob -Job $job -EnableReIp -ReIpRule $reiprule |
Example 2
This example shows how to configure seeding for a replication job.
- Run Get-VBRJob to get the replication job and save it to the $job variable.
- Run Get-VBRBackupRepository to get the backup repository where the seed backup resides and save it to the $repository variable.
- Run Set-VBRViReplicaJob. Use the $job and $repository variables.
$job = Get-VBRJob -Name "Apache Replication" $repository = Get-VBRBackupRepository -Name "Backup Volume 01" Set-VBRViReplicaJob -Job $job -EnableSeeding -RepositorySeed $repository |
Example 3
This example shows how to configure VM mapping for a replication job.
- Run Get-VBRJob to get the replication job and save it to the $job variable.
- Run Find-VBRViEntity to get the original VM that you want to map. Save it to the $originalvm variable.
- Run Find-VBRViEntity to get the replica VM. Save it to the $replicavm variable.
- Run Set-VBRViReplicaJob. Use the $job, $originalvm and $replicavm variables.
$job = Get-VBRJob -Name "Apache Replication" $originalvm = Find-VBRViEntity -Server "Production Host" -Name "Original VM" $replicavm = Find-VBRViEntity -Server "DR Host" -Name "Replica VM" Set-VBRViReplicaJob -Job $job -EnableVMMapping -OriginalVM $originalvm -ReplicaVM $replicavm |
Related Commands