Set-VBRComputerBackupCopyJob

Short Description

Modifies Veeam Agent backup copy jobs.

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Set-VBRComputerBackupCopyJob -Job <VBRComputerBackupCopyJob> [-Name <String>] [-Description <String>]

[-Backup <CBackup[]>] [-BackupJob <VBRComputerBackupJob[]>] [-SourceRepository <CBackupRepository[]>]

[-Repository <CBackupRepository>] [-DirectOperation] [-SourceAccelerator <CWanAccelerator>]

[-TargetAccelerator <CWanAccelerator>] [-Force] [-RecoveryPointObjective <VBRRecoveryPointObjective>]

[-RetentionPolicy <VBRRetentionPolicy>] [-BackupWindowOptions <VBRBackupWindowOptions>]

[-NotificationOptions <VBRNotificationOptions>] [-StorageOptions <VBRBackupCopyJobStorageOptions>]

[-HealthCheckOptions <VBRHealthCheckOptions>] [-ScriptOptions <VBRJobScriptOptions>]

[-RPOWarningOptions <VBRRpoNotificationOption[]>] [-EnableTransactionLogCopy] [-AnyTime]

[-GFSOptions <VBRComputerGFSOptions>] [-RetentionType <VBRRetentionType>] [-RetentionNumber <Int32>] [<CommonParameters>]

Detailed Description

This cmdlet modifies Veeam Agent backup copy jobs.

Note

To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

AnyTime

Defines that Veeam Backup & Replication will run a Veeam Agent backup copy job at any time according to its schedule.

SwitchParameter

False

Named

False

Backup

Specifies an array of backups. The cmdlet will add machines from these backups to a Veeam Agent backup copy.

Note: This parameter is available for a Veeam Agent backup copy job that is created with the periodic backup copy mode.

Accepts the CBackup[] object. To create this object, run the Get-VBRBackupReturns backups. cmdlet.

CBackup[]

False

Named

True (ByPropertyName, ByValue)

BackupJob

Specifies an array of backup jobs. The cmdlet will add machines processed by these jobs to a Veeam Agent backup copy job.

Accepts the VBRComputerBackupJob[] object. To create this object, run the Get-VBRComputerBackupJobReturns Veeam Agent backup jobs and Veeam Agent backup policies. cmdlet.

VBRComputerBackupJob[]

False

Named

True (ByPropertyName)

BackupWindowOptions

Specifies backup window settings for a Veeam Agent backup copy job. The cmdlet will create the job with these settings.

Accepts the VBRBackupWindowOptions object. To create this object, run the New-VBRBackupWindowOptionsDefines backup window settings for a job. cmdlet.

VBRBackupWindowOptions

False

Named

False

Description

Specifies a description of a Veeam Agent backup copy job.

String

False

Named

False

DirectOperation

Defines that the cmdlet will create a Veeam Agent backup copy job that will transfer data directly from the source backup repository to the target backup repository.

SwitchParameter

False

Named

False

EnableTransactionLogCopy

Defines that the Veeam Agent backup copy job will process transaction logs of the source job.

SwitchParameter

False

Named

False

Force

Defines that the cmdlet will modify Veeam Agent backup copy jobs without showing warnings in the PowerShell console.

SwitchParameter

False

Named

False

GFSOptions

Specifies a GFS retention. The cmdlet will create Veeam Agent backup copy job with the specified policy.

Note: This option is not available for Veeam Agent policies.

Accepts the VBRComputerGFSOptions object. To get this object, run the New-VBRComputerGFSOptionsDefines settings of GFS retention for Veeam Agent backup jobs. cmdlet.

VBRComputerGFSOptions

False

Named

False

HealthCheckOptions

Specifies the health check schedule for a Veeam Agent backup copy job. The cmdlet will create the job with these settings.

Accepts the VBRFullBackupOptions object. To create this object, run the New-VBRFullBackupOptionsCreates active full backup schedule settings for Veeam Agent backup jobs. cmdlet.

VBRHealthCheckOptions

False

Named

False

Job

Specifies a Veeam Agent backup copy job that you want to modify.

Accepts the VBRComputerBackupCopyJob object. To create this object, run the Get-VBRComputerBackupCopyJobReturns Veeam Agent backup copy jobs. cmdlet.

VBRComputerBackupCopyJob

True

Named

True (ByValue)

Name

Specifies a name that you want to assign to a Veeam Agent backup copy job.

String

False

Named

False

NotificationOptions

Specifies notification settings for a Veeam Agent backup copy job. The cmdlet will create the job with these settings.

Accepts the VBRNotificationOptions object. To create this object, run the New-VBRNotificationOptionsCreates new job notification options. cmdlet.

VBRNotificationOptions

False

Named

False

RecoveryPointObjective

Specifies a schedule for a Veeam Agent backup copy job with the periodic backup copy mode. The cmdlet will create the job with these settings.

Accepts the VBRRecoveryPointObjective object. To create this object, run the Get-VBRRecoveryPointObjectiveReturns a schedule for a backup copy jobs that process backups stored on external repositories. cmdlet.

VBRRecoveryPointObjective

False

Named

False

Repository

Specifies the backup repository. The cmdlet will copy the machine data to this repository.

Default: Default backup repository.

Accepts the CBackupRepository object. To get this object, run the Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet.

CBackupRepository

False

Named

False

RetentionNumber

For the RetentionType set to the RestoreDays property.

Specifies a number of days for which you want to store backup files in the target location.

Default: 7 days.

Int32

False

Named

False

RetentionPolicy

Specifies a retention policy for a Veeam Agent backup copy job. The cmdlet will create the job with these settings. You can specify the following types of retention policies:

  • Simple retention policy: use this option for short-time archiving. To create a job with this type of the policy, provide the VBRSimpleRetentionPolicy object. Run the New-VBRSimpleRetentionPolicyCreates a retention policy for backup copy jobs that process backups stored on external repositories. cmdlet to create this object.
  • GFS retention policy: use this option for long-term archiving. To create a job with this type of the policy, provide the VBRRetentionPolicy object. Run the New-VBRGFSRetentionPolicyCreates a GFS retention policy for backup copy jobs that process backups stored on external repositories. cmdlet to create this object.

Accepts the following objects:

  • VBRRetentionPolicy. Run the New-VBRGFSRetentionPolicyCreates a GFS retention policy for backup copy jobs that process backups stored on external repositories. cmdlet to get this object.
  • VBRSimpleRetentionPolicy. Run the New-VBRSimpleRetentionPolicyCreates a retention policy for backup copy jobs that process backups stored on external repositories. cmdlet to create this object.

VBRRetentionPolicy

False

Named

False

RetentionType

Specifies retention type for Veeam Agent copy jobs managed by the Veeam Backup server. You can specify one of the following types:

  • RestorePoints
  • RestoreDays

VBRRetentionType

False

Named

False

RPOWarningOptions

Specifies an array of the number of hours when data must be copied from the source repository to the target repository.

Default: 1 hour.

Accepts the VBRRPONotificationOptions[] object. To create this object, run the New-VBRRPONotificationOptionDefines RPO notification settings. cmdlet.

VBRRpoNotificationOption[]

False

Named

False

ScriptOptions

Specifies pre-job and post-job script options for a Veeam Agent backup copy job. The cmdlet will create the job with these settings.

Accepts the VBRJobScriptOptions object. To create this object, run the New-VBRJobScriptOptions cmdlet.

VBRJobScriptOptions

False

Named

False

SourceAccelerator

Specifies the WAN accelerator on the source side.

Remember to set the pair of source and target WAN accelerators.

Accepts the CWanAccelerator object. To get this object, run the Get-VBRWANAcceleratorReturns WAN accelerators.cmdlet.

CWanAccelerator

False

Named

False

SourceRepository

Specifies an array of source backup repositories.

Accepts the CBackupRepository[] object. To create this object, run the Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet.

CBackupRepository[]

False

Named

True (ByPropertyName)

StorageOptions

Specifies the storage settings of the backup repository. The cmdlet will create the Veeam Agent backup copy job with these settings.

Accepts the VBRBackupCopyJobStorageOptions object. To create this object, run the New-VBRBackupCopyJobStorageOptionsDefines storage settings for Veeam Agent backup copy jobs. cmdlet.

VBRBackupCopyJobStorageOptions

False

Named

False

TargetAccelerator

Specifies the WAN accelerator on the target side.

Remember to set the pair of source and target WAN accelerators.

Accepts the CWanAccelerator object. To get this object, run the Get-VBRWANAcceleratorReturns WAN accelerators.cmdlet.

CWanAccelerator

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 VBRComputerBackupCopyJob object that contains settings of Veeam Agent backup copy jobs.

Examples

Modifying Backup Window Settings for Veeam Agent Backup Copy Job

The following example shows how to modify backup window settings for a Veeam Agent Backup Copy job.

$job = Get-VBRComputerBackupCopyJob -Name "Windows Copy Job05"

$windowoptions = New-VBRBackupWindowOptions -FromDay Monday -FromHour 08 -ToDay Friday -ToHour 20

Set-VBRComputerBackupCopyJob -Job $job -BackupWindowOptions $windowoptions

Perform the following steps:

  1. Run the Get-VBRComputerBackupCopyJobReturns Veeam Agent backup copy jobs. cmdlet. Specify the Name parameter value. Save the result to the $job variable.
  2. Run the New-VBRBackupWindowOptionsDefines backup window settings for a job. cmdlet. Specify the necessary parameters. Save the result to the $windowoptions variable.
  3. Run the Set-VBRComputerBackupCopyJob cmdlet. Set the $job variable as the Job parameter value. Set the $windowoptions variable as the BackupWindowOptions parameter value.

Page updated 2026-08-19

Page content applies to build 13.1.1.18