Sync-VBRBackupCopyJob

Short Description

Synchronizes backup copy job data.

Applies to

Platform: VMware, Hyper-V

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

Syntax

Sync-VBRBackupCopyJob -Job <IJob> [-FullBackup <SwitchParameter>] [-ImmediateCopyLastRestorePoint <SwitchParameter>] [<CommonParameters>]

Detailed Description

This cmdlet starts manual data synchronization for the selected backup copy job.

The backup copy job runs continuously synchronizing the backup repositories in user-defined time periods. With this cmdlet, you can synchronize the source and the target repositories manually.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Job

Specifies the backup copy job. The cmdlet will synchronize this job.

Accepts object containing a backup copy job or string type.

True

Named

True (ByValue,
ByProperty
Name)

False

FullBackup

Defines that the job will create an active full backup.

False

Named

False

False

ImmediateCopyLastRestorePoint

Defines that the cmdlet will enable the immediate copy mode.

If you specify this parameter, Veeam Backup & Replication will copy only the latest restore point for each source job.

Otherwise, Veeam Backup & Replication will copy all restore points created by the source jobs that were not copied since the last backup copy job session.

False

Named

False

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Examples

Sync-VBRBackupCopyJobExample 1. Synchronizing Backup Copy Job Data [Using Variable]

This example shows how to synchronize the backup copy job data using variable.

$copyjob = Get-VBRJob -Name "AD Backup Copy"

Sync-VBRBackupCopyJob -Job $copyjob

Perform the following steps:

  1. Run the Get-VBRJob cmdlet. Specify the Name parameter value. Save the result to the $copyjob variable.
  2. Run the Sync-VBRBackupCopyJob cmdlet. Set the $copyjob variable as the Job parameter value.

Sync-VBRBackupCopyJobExample 2. Synchronizing Backup Copy Job Data [Using Pipeline]

This example shows how to synchronize the backup copy job data using pipeline.

Get-VBRJob -Name "AD Backup Copy" | Sync-VBRBackupCopyJob

Perform the following steps:

  1. Run the Get-VBRJob cmdlet. Specify the Name parameter value.
  2. Pipe the cmdlet output to the Sync-VBRBackupCopyJob cmdlet.

Sync-VBRBackupCopyJobExample 3. Synchronizing Backup Copy Job Data and Creating Active Full Backup

This example shows how to synchronize data and create an active full backup for the backup copy job named AD Backup Copy.

$copyjob = Get-VBRJob -Name "AD Backup Copy"

Sync-VBRBackupCopyJob -Job $copyjob -FullBackup

Perform the following steps:

  1. Run the Get-VBRJob cmdlet. Specify the Name parameter value. Save the result to the $copyjob variable.
  2. Run the Sync-VBRBackupCopyJob cmdlet. Set the $copyjob variable as the Job parameter value. Provide the FullBackup parameter.

Related Commands

Get-VBRJob