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

Add-VBRBackupJob (obsolete)

In this article

    Short Description

    Creates a new backup job.

    Add-VBRBackupJob (obsolete) Note:

    In Backup & Replication v6 this cmdlet was replaced by Add-VBRViBackupJob and Add-VBRHvBackupJob due to multihypervisor support introduced in the new version. The cmdlet will still work but it is advised to rewrite your scripts using new cmdlets for added benefits.

    Applies to

    Platform: VMware

    Syntax

    Add-VBRBackupJob [-Name] <String> [[-Type] <String>] [-Server] <CHost> [[-Folder] <String>] [-FileName <String>] -Objects <String[]> [-Description <String>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

    Related Commands

    Get-VBRServer

    Detailed Description

    This cmdlet allows you to create a new backup job.

    Note that when you create a backup job, you need to run it manually unless you enable a job schedule.

    Run Start-VBRJob to start the created job.

    Run Set-VBRJobSchedule to set schedule for the job.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    Name

    Specifies the string with the name of the created backup job.

    True

    1

    False

    False

    Type

    Specifies the string with the type of the created backup job which defines how VM data is retrieved:

    VDDK – Virtual Disk Development Kit (VMware vStorage API)

    VCB – VMware Consolidated Backup (legacy mode)

    NET – Network backup (legacy mode).

    False

    2

    False

    False

    Server

    Specifies the host where the created backup should be stored.

    True

    3

    False

    False

    Folder

    Specifies the string with the path to the folder where the created backup should be stored.

    False

    4

    False

    False

    FileName

    Specifies the string with the file name for the created backup (by default, the backup file is given the same name as the VM).

    False

    Named

    False

    False

    Objects

    Specifies the string with the name(s) of VM(s) that you want to back up.

    True

    Named

    True (ByValue,
    ByProperty
    Name)

    False

    Description

    Specifies the description of the new backup job.

    If not set, Veeam Backup & Replication will enter date and time of creation by default.

    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

    This example allows you to create a backup job with the following parameters:

    • Name of the backup job: jobName
    • Data retrieval type: VDDK
    • Variable which contains the target host DNS name or IP address: $server
    • Path to the backup folder: C:\VmBackups
    • VMs which should be backed up: vm1, vm2

    Add-VBRBackupJob –Name “jobName”–Type VDDK –Server $server –Folder "C:\VmBackups" –Objects vm1,vm2