Copy-VBRBackupCopyJob
Short Description
Clones a backup copy job.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Copy-VBRBackupCopyJob [-Job] <VBRBackupCopyJob[]> [-Name <String[]>] [-Description <String[]>] [-Repository <CBackupRepository>] [<CommonParameters>] |
Detailed Description
This cmdlet clones a backup copy job.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Description |
Specifies the description you want to assign to the backup copy job that you want to clone. |
|
False |
Named |
False |
|
Job |
Specifies an array of backup copy jobs that you want to clone.
Accepts the |
|
True |
0 |
True (ByPropertyName, ByValue) |
|
Name |
Specifies the name you want to assign to the backup copy that you want to clone.
Default: the name of the primary job with the |
|
False |
Named |
False |
|
Repository |
Specifies the repository to which you want to copy the backup job that you want to clone. Note: If you do not specify this parameter, the cmdlet will copy the backup job to the same repository, where the original job stores backups.
Accepts the |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRBackupCopyJob object that contains settings of backup copy jobs.
Examples
Cloning Backup Copy Jobs
This example shows how to clone backup copy jobs.
|
$copyjobs = Get-VBRBackupCopyJob Copy-VBRBackupCopyJob -Job $copyjobs |
Perform the following steps:
- Run the
Get-VBRBackupCopyJobReturns backup copy jobs. cmdlet. Save the result to the$copyjobsvariable. - Run the
Copy-VBRBackupCopyJobcmdlet. Set the$copyjobsvariable as theJobparameter value.
Related Commands
Get-VBRBackupCopyJobReturns backup copy jobs.