Copy-VBRJob
Short Description
Clones existing jobs.
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, tape and copy jobs.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Description |
Specifies the description of the cloned job. |
|
False |
Named |
False |
|
Job |
Specifies the array of jobs you want to clone.
Accepts the |
|
True |
0 |
True (ByPropertyName, ByValue) |
|
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 |
|
False |
Named |
False |
|
Repository |
Specifies the backup repository that will be used by the cloned job as a target.
Accepts the |
|
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
Perform the following steps:
|
Example 2. Cloning Jobs [Using Variable]
|
This example shows how to clone the job represented by the
Perform the following steps:
|
Related Commands
Get-VBRJobReturns existing jobs.