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

Sync-VBRBackupCopyJob

In this article

    Short Description

    Synchronizes backup copy job data.

    Applies to

    Platform: VMware, Hyper-V

    Product Edition: Standard, Enterprise, Enterprise Plus

    Syntax

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

    Related Commands

    Get-VBRJob

    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 for which you want to start manual synchronization.

    True

    Named

    True (by Value
    FromPipeline,
    ValueFromPipeline
    ByPropertyName)

    False

    FullBackup

    If set, the job will create an active full backup.

    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 synchronizes the "AD Backup Copy" job using pipeline.

    1. Run Get-VBRJob to get the job.
    2. Pipe it to Sync-VBRBackupCopyJob.

    PS C:\PS> Get-VBRJob -Name "AD Backup Copy" | Sync-VBRBackupCopyJob

    Example 2

    This command synchronizes the "AD Backup Copy" job using variable.

    1. Run Get-VBRJob to get the job. Save it to the $"ad" variable.
    2. Run Sync-VBRBackupCopyJob with this variable.

    PS C:\PS> $ad = Get-VBRJob -Name "AD Backup Copy"

    PS C:\PS> Sync-VBRBackupCopyJob -Job $ad

    Example 3

    This command creates an active full for the "AD Backup Copy" job.

    1. Run Get-VBRJob to get the job. Save it to the $"ad" variable.
    2. Run Sync-VBRBackupCopyJob with this variable and FullBackup parameter.

    PS C:\PS> $ad = Get-VBRJob -Name "AD Backup Copy"

    PS C:\PS> Sync-VBRBackupCopyJob -Job $ad -FullBackup