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, since it retains all settings of the primary job.
You can run this cmdlet with the following types of jobs:
- Backup jobs
- Replication jobs
- 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 a "_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 about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
This example shows how to copy a job.
You will need to perform the following steps:
- Run Get-VBRJob to get the job. Save the result to the $backupjob variable.
- Run Copy-VBRJob with the $backupjob variable.
PS C:\PS> $backupjob = Get-VBRJob -Name "DHCP Replica Job"
PS C:\PS> Copy-VBRJob -Job $backupjob