This is an archive version of the document. To get the most up-to-date information, see the current version.

Copy-VBRJob

Short Description

Clones an existing job.

Applies to

Platform: VMware, Hyper-V

Product Edition: Enterprise, Enterprise Plus

Syntax

Copy-VBRJob [-Job] <CBackupJob[]> [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

Related Commands

Get-VBRJob

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. The cloned job is created with the name of the primary job with '_clone<clone sequence number>' suffix.

You can run this cmdlet with backup, replication and copy jobs.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Job

Specifies the job you want to clone.

True

1

True (ByValue,
ByProperty
Name)

False

Repository

Specifies a new 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 1

This command clones the jobs named "DHCP Replica Job" and "DHCP Backup Job". The jobs are obtained with Get-VBRJob and piped down.

PS C:\PS> Get-VBRJob -Name "DHCP Replica Job", "DHCP Backup Job" | Copy-VBRJob

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.

PS C:\PS> Copy-VBRJob -Job $job