Short Description
Clones existing jobs.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Copy-VBRJob [-Job] <CBackupJob[]> [-Name <string[]>] [-Description <string[]>] [-Repository <CBackupRepository>] [<CommonParameters>] |
Detailed Description
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
Parameters
Parameter | Description | Required | Position | Accept | Accept |
Job | Specifies the array of jobs you want to clone. | True | 1 | True (ByValue, | False |
Name | 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. | False | Named | False | False |
Description | Specifies the description of the cloned job. | False | Named | False | False |
Repository | Specifies the backup repository that will be used by the cloned job as a target. | False | Named | False | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
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 |
Related Commands