Clones existing jobs.
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Copy-VBRJob [-Job] <CBackupJob> [-Name <string>] [-Description <string>] [-Repository <CBackupRepository>] [<CommonParameters>]
This cmdlet clones an existing job. You can use the cloned job, for example, as a template, as it retains all settings of the primary job.
You can run this cmdlet with backup, replication and copy jobs.
Specifies the array of jobs you want to clone.
Specifies the name you want to assign to the cloned job.
Default: the name of the primary job with the _clone<clone sequence number> suffix.
Specifies the description of the cloned job.
Specifies the backup repository that will be used by the cloned job as a target.
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
This command clones the jobs named "DHCP Replica Job" and "DHCP Backup Job". The jobs are obtained with Get-VBRJob and piped down.
Get-VBRJob -Name "DHCP Replica Job", "DHCP Backup Job" | Copy-VBRJob
This command clones the job represented by the $job variable. The job is obtained with Get-VBRJob and assigned to the variable beforehand.
Copy-VBRJob -Job $job