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 | Type | Required | Position | Accept |
---|---|---|---|---|---|
Job | Specifies the array of jobs you want to clone. | Accepts the CBackupJob[] object. To create this object, run the Get-VBRJob cmdlet. | True | 0 | True (ByProperty |
Name | Specifies the name you want to assign to the cloned job. The maximum length is 50 symbols. If you exceed the length limit, the cloned job name will be cropped to 50 symbols. Default: the name of the primary job with the _clone<clone sequence number> suffix. | String[] | False | Named | False |
Description | Specifies the description of the cloned job. | String[] | False | Named | False |
Repository | Specifies the backup repository that will be used by the cloned job as a target. | Accepts the CBackupRepository object. To get this object, run the Get-VBRBackupRepository cmdlet. | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Example 1. Cloning Specific Jobs [Using Pipeline]
This example shows how to clone the DHCP Replica Job and DHCP Backup Job jobs.
Perform the following steps:
|
Example 2. Cloning Jobs [Using Variable]
This example shows how to clone the job represented by the $job variable.
Perform the following steps:
|
Related Commands