Add-VBRHvReplicaJob
Short Description
Creates Hyper-V replication jobs.
Platform: Hyper-V
For VMware, run the Add-VBRViReplicaJobCreates VMware replication jobs. cmdlet.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Add-VBRHvReplicaJob [-Name <String>] -Server <CHost> [-Path <String>] -Entity <IHvItem[]> [-Suffix <String>] [-Description <String>] [-SourceRepository <CBackupRepository[]>] [-BackupRepository <CBackupRepository>] [-ReIpRule <IHvReIpRule[]>] [-RepositorySeed <CBackupRepository>] [-OriginalVM <CHvVmItem[]>] [-ReplicaVM <CHvVmItem[]>] [-Force] [-HighPriority] [<CommonParameters>] |
Detailed Description
This cmdlet creates a new Hyper-V replication job.
You can select a data source from which VM data must be read:
- Actual VM: Veeam Backup & Replication will copy an actual VM from production storage. The created replica will mirror an actual VM state.
Use the
Entityparameter to indicate the VMs you want to replicate. - Replica from backup files: Veeam Backup & Replication will build a replica from backup files stored in a backup repository. The created replica will be in the latest state the VM is available in backups.
Use the
Entityparameter to indicate the VMs you want to replicate and theBackupRepositoryparameter to set the repository from where the backup files must be read.
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 start the created 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 job target repository 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 backup repository that will be used to store replica metadata files. Default: default backup repository.
Accepts the |
|
False |
Named |
False |
|
Description |
Specifies the description of the replication job. |
|
False |
Named |
False |
|
Entity |
Specifies the array of VMs you want to add to this 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 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 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 |
|
Path |
Specifies the Hyper-V volume where the created replica will be stored. |
|
False |
Named |
False |
|
ReIpRule |
Specifies the re-IP rules.
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 target Hyper-V host where the created replica will be stored.
Accepts the |
|
True |
Named |
False |
|
SourceRepository |
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 |
|
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 |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
CBackupJob
Examples
Example 1. Creating VM Replica from Production Storage
|
This example shows how to create a VM replica from a production storage.
Perform the following steps:
|
Example 2. Creating VM Replica from Backup Files
|
This example shows how to create a VM replica from backup files.
Perform the following steps:
|
Related Commands
Get-VBRServerReturns hosts connected to the backup infrastructure.Find-VBRHvEntityReturns Hyper-V objects.Get-VBRBackupRepositoryReturns a list of backup repositories.Get-VBRLocationReturns geographic locations created in Veeam Backup & Replication.