Set-VBRBackupCopyJob
Short Description
Modifies backup copy jobs.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRBackupCopyJob -Job <VBRBackupCopyJob> [-Name <String>] [-Mode <VBRBackupCopyJobMode>] [-Description <String>] [-Backup <VBRBackup[]>] [-BackupJob <CBackupJob[]>] [-SourceRepository <CBackupRepository[]>] [-TargetRepository <CBackupRepository>] [-DirectOperation] [-SourceAccelerator <CWanAccelerator>] [-TargetAccelerator <CWanAccelerator>] [-IgnoreLocation] [-NotificationOptions <VBRNotificationOptions>] [-StorageOptions <VBRBackupCopyJobStorageOptions>] [-AnyTime] [-BackupWindowOptions <VBRBackupWindowOptions>] [-ScheduleOptions <VBRServerScheduleOptions>] [-RPOWarningOptions <VBRRpoNotificationOption[]>] [-ScriptOptions <VBRJobScriptOptions>] [-HealthCheckOptions <VBRHealthCheckOptions>] [-EnableTransactionLogCopy] [-GFSOptions <VBRComputerGFSOptions>] [-RetentionType <VBRRetentionType>] [-RetentionNumber <Int32>] [-ProcessLatestAvailablePoint] [<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
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
AnyTime |
Defines that Veeam Backup & Replication will run a backup copy job at any time according to its schedule. |
|
False |
Named |
False |
|
Backup |
Specifies an array of backups. The cmdlet will add these backups as source to the backup copy job. You can specify only the array of the following backups:
Accepts the |
|
False |
Named |
True (ByPropertyName) |
|
BackupJob |
Specifies an array of backup jobs. The cmdlet will add backups processed by these jobs to this backup copy job.
Accepts the |
|
False |
Named |
True (ByPropertyName) |
|
BackupWindowOptions |
Specifies a time interval within which a backup copy job can start.
To use this parameter, set the
Accepts the |
False |
Named |
False |
|
|
Description |
Specifies a description for a backup copy job. |
|
False |
Named |
False |
|
DirectOperation |
Defines that a backup copy job will send the data directly to the target backup repository without performing data deduplication. |
|
False |
Named |
False |
|
EnableTransactionLogCopy |
Defines that a backup copy job will process transaction logs of the source job. |
|
False |
Named |
False |
|
GFSOptions |
Specifies a GFS retention. The cmdlet will create a backup copy job with the specified policy.
Accepts the |
|
False |
Named |
False |
|
HealthCheckOptions |
Specifies the health check schedule. The cmdlet will create a file backup job with this health check schedule.
Accepts the |
|
False |
Named |
False |
|
IgnoreLocation |
Defines that the job will start even if original and target computer locations do not match. |
|
False |
Named |
False |
|
Job |
Specifies an array of backup copy jobs that you want to modify.
Accepts the |
|
True |
Named |
True (ByValue) |
|
Mode |
Specifies a backup copy job mode: Periodic or Immediate. |
|
False |
Named |
False |
|
Name |
Specifies the name you want to assign to the backup copy job. |
|
False |
Named |
False |
|
NotificationOptions |
Specifies notification options of a backup copy job.
Accepts the |
False |
Named |
False |
|
|
ProcessLatestAvailablePoint |
Defines that the most recent restore point will be processed instead of waiting for the most current backup file to become available. |
|
False |
Named |
False |
|
RetentionNumber |
For the Specifies a number of days for which you want to store backup files in the target location. Default: 7 days. |
|
False |
Named |
False |
|
RetentionType |
Specifies the retention type for a backup copy job managed by the Veeam Backup server. You can specify one of the following types:
|
|
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:
Accepts the |
False |
Named |
False |
|
|
ScheduleOptions |
Specifies schedule options. The cmdlet will create a backup job with these schedule options.
Accepts the |
|
False |
Named |
False |
|
ScriptOptions |
Specifies pre-job and post-job script options for a backup copy job. The cmdlet will create the job with these settings.
Accepts the |
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 |
False |
Named |
False |
|
|
SourceRepository |
Specifies an array of source backup repositories.
Accepts the |
|
False |
Named |
True (ByPropertyName) |
|
StorageOptions |
Specifies the storage settings of the backup repository. The cmdlet will create a backup copy job with these settings.
Accepts the |
|
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 |
False |
Named |
False |
|
|
TargetRepository |
Specifies a target backup repository. The cmdlet will copy backups to this repository.
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
Modifying Backup Window Settings for Backup Copy Job
This example shows how to modify backup window settings for a backup copy job named Copy Job05.
|
$job = Get-VBRBackupCopyJob -Name "Copy Job05" $windowoptions = New-VBRBackupWindowOptions -FromDay Monday -FromHour 08 -ToDay Friday -ToHour 20 Set-VBRBackupCopyJob -Job $job -AnyTime:$False Set-VBRBackupCopyJob -Job $job -BackupWindowOptions $windowoptions |
Perform the following steps:
- Run the
Get-VBRBackupCopyJobReturns backup copy jobs. cmdlet. Specify theNameparameter value. Save the result to the$jobvariable. - Run the
New-VBRBackupWindowOptionsDefines backup window settings for a job. cmdlet. Specify theFromDay,FromHour,ToDayandToHourparameter values. Save the result to the$windowoptionsvariable. - Run the
Set-VBRBackupCopyJobcmdlet. Set the$jobvariable as theJobparameter value. Set theAnyTimeparameter value to$False. - Run the
Set-VBRBackupCopyJobcmdlet. Set the$jobvariable as theJobparameter value. Set the$windowoptionsvariable as theBackupWindowOptionsparameter value.
Related Commands
Get-VBRBackupCopyJobReturns backup copy jobs.New-VBRBackupWindowOptionsDefines backup window settings for a job.