Add-VBRViCloudReplicaJob
Short Description
Creates a new VMware cloud replication job.
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Add-VBRViCloudReplicaJob [-Name <String>] [-Description <String>] -Entity <IViItem[]> -Server <VBRCloudServer> -Datastore <VBRCloudDatastore> [-Suffix <String>] [-BackupRepository <CBackupRepository>] [-SourceRepository <CBackupRepository[]>] [-EnableNetworkMapping] [-SourceNetwork <VBRViNetworkInfo[]>] [-TargetNetwork <VBRCloudServerNetworkInfo[]>] [-SourceProxy <CViProxy[]>] [-SourceWANAccelerator <CWanAccelerator>] [-DiskType <EDiskCreationMode>] [-RepositorySeed <CBackupRepository>] [-OriginalVM <CViVmItem[]>] [-ReplicaVM <COib[]>] [-Force] [-HighPriority] [<CommonParameters>] |
Detailed Description
This cmdlet creates a new VMware cloud replication job. Cloud replication creates a VM replica on a cloud host and maintains it in sync with the original VM.
Note that cloud replication does not support replica from backup.
When you create a replication job, you can configure the following additional settings:
- Network mapping: this option allows you to configure network mapping rules if the production site and the cloud host uses separate virtual networks. Use the
EnableNetworkMappingparameter to enable the network mapping and theSourceNetworkand theTargetNetworkparameters to select the networks. - Proxy server: this option allows you to assign particular proxy server for the data transfer. Use the
SourceProxyparameter to set the proxy explicitly or leave the default (Automatic selection). - WAN accelerators: this option allows you to use the built-in WAN accelerators to optimize the data transfer. Note that WAN accelerators must work in pair, so you can use the WAN acceleration only if the cloud provider has a WAN accelerator on the target side. Use the
SourceWANAcceleratorparameter to set the source WAN accelerator. - Re-IP rules: this option allows you to configure different IP addressing scheme for the production site and the cloud host. You need to create an object containing the re-IP rules beforehand by running the
New-VBRViReplicaReIpRuleCreates a new VMware replica re-IPv4 rule. cmdlet. Then pass the created object to theReIpRuleparameter of this cmdlet.
Note that when you create a replica job, you need to run it manually unless you enable a job schedule.
Run the Start-VBRJobStarts a backup or replication job. cmdlet to run the job manually.
Run the Set-VBRJobScheduleModifies job schedule. cmdlet to set schedule for the job and run it automatically.
Note |
|
The cmdlet will not run if the geographic location of the VMs added to the job and the target cloud host location do not match. If you still want to run the cmdlet, use the |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
BackupRepository |
Specifies the user backup repository that will be used to store replica metadata files. If not set, the default backup repository will be used.
Accepts the |
|
False |
Named |
False |
|
Datastore |
Specifies the cloud datastore to which you want to replicate.
Accepts the |
True |
Named |
False |
|
|
Description |
Specifies the description of the new job. |
|
False |
Named |
False |
|
DiskType |
Specifies the format that will be used to restore replica disk files:
Default: |
|
False |
Named |
False |
|
EnableNetworkMapping |
Enables the network mapping option. Use the |
|
False |
Named |
False |
|
Entity |
Specifies the array of VMs you want to add to the job.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Force |
Defines that the cmdlet will create a job even if the geographic location of the VMs added to the job and the target cloud host location do not match. |
|
False |
Named |
False |
|
HighPriority |
Defines that Veeam Backup & Replication will prioritize this job higher than other similar jobs and will allocate resources to it in the first place. |
|
False |
Named |
False |
|
Name |
Specifies the name you want to assign to the cloud replication job. |
|
False |
Named |
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
Accepts the |
|
False |
Named |
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
Accepts the |
|
False |
Named |
False |
|
RepositorySeed |
For replica seeding. Specifies the backup repository where the seed (the full backup) resides.
Accepts the |
|
False |
Named |
False |
|
Server |
Specifies the cloud host allocated by the service provider through the hardware plan. The replicas will be created on this host.
Accepts the |
True |
Named |
False |
|
|
SourceNetwork |
Used to set the source network for the Specifies the production network to which VMs added to the job are connected. Note: The number of the source and the target networks must be the same.
Accepts the |
False |
Named |
False |
|
|
SourceProxy |
Specifies the source proxy that will be used by the job.
Default:
Accepts the |
|
False |
Named |
False |
|
SourceRepository |
Used 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. You cannot specify cloud repository.
Accepts the |
|
False |
Named |
False |
|
SourceWANAccelerator |
Specifies the WAN accelerator configured in the source site that will be used for data transfer. Note: you can set the source WAN accelerator only if the cloud provider has a target WAN accelerator configured.
Accepts the |
False |
Named |
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.
Note: If you omit this parameter, the replicated VMs will get the |
|
False |
Named |
False |
|
TargetNetwork |
Used to set the target network for the Specifies the network in the DR site to which VM replicas must be connected. Note: The number of the source and the target networks must be the same.
Accepts the |
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
CBackupJob
Examples
Creating Cloud Replica Job
This example shows how to create a cloud replica job.
|
$vm = Find-VBRViEntity -Name "web_application_server" $cloudServer = Get-VBRCloudServer -Name 104.45.95.227 $cloudDatastore = Get-VBRCloudDatastore -CloudServer $cloudServer -Name "ABCDatastore" Add-VBRViCloudReplicaJob -Name "Cloud Replica Job" -Entity $vm -Server $cloudServer -Datastore $cloudDatastore |
Perform the following steps:
- Run the
Find-VBRViEntityLooks for VMware objects. cmdlet. Specify theNameparameter value. Save the result to the$vmvariable. - Run the
Get-VBRCloudServerReturns cloud hosts allocated by a service provider. cmdlet. Specify theNameparameter value. Save the result to the$cloudServervariable. - Run the
Get-VBRCloudDatastoreReturns datastores or disk volumes allocated to you under your cloud resources. cmdlet. Set the$cloudServervariable as theCloudServerparameter value. Specify theNameparameter value. Save the datastore to the$cloudDatastorevariable. - Run the
Add-VBRViCloudReplicaJobcmdlet. Specify the following settings:- Specify the
Nameparameter value. - Set the
$vmvariable as theEntityparameter value. - Set the
$cloudServervariable as theServerparameter value. - Set the
$cloudDatastorevariable as theDatastoreparameter value.
- Specify the
Related Commands
Find-VBRViEntityLooks for VMware objects.Get-VBRCloudServerReturns cloud hosts allocated by a service provider.Get-VBRCloudDatastoreReturns datastores or disk volumes allocated to you under your cloud resources.Get-VBRBackupRepositoryReturns a list of backup repositories.Get-VBRViServerNetworkInfoReturns virtual networks for a VMware host.Get-VBRViProxyReturns a list of VMware backup proxies.Get-VBRWANAcceleratorReturns WAN accelerators.Get-VBRLocationReturns geographic locations created in Veeam Backup & Replication.