Copy-VBRJob
Short Description
Clones existing jobs.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus, Veeam Universal License
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, as it retains all settings of the primary job.
You can run this cmdlet with backup, replication and 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 the _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 on common parameters, see the About CommonParameters section of Microsoft Docs.
Example 1
This command clones the jobs named "DHCP Replica Job" and "DHCP Backup Job". The jobs are obtained with Get-VBRJob and piped down.
Example 2
This command clones the job represented by the $job variable. The job is obtained with Get-VBRJob and assigned to the variable beforehand.
Related Commands