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

Creating VMware Backup Job

In this article

    This example shows how to create a VMware backup job for a CRM database server, then add another CRM database server to this job and set the additional options.

    You will need to perform the following steps:

    1. Create the backup job by running Add-VBRViBackupJob. You will need to get the VM that you will add to the job and the backup repository to store its backups. Use Find-VBRViEntity and Get-VBRBackupRepository respectively.
    2. If you want to add another VM to the created job, get the job with Get-VBRJob and run Add-VBRViJobObject.
    3. Configure a schedule with Set-VBRJobSchedule and apply it to the job. Remember to enable the schedule with Enable-VBRJobSchedule.
    4. Add advanced job options: schedule a synthetic and an active full backup with Set-VBRJobAdvancedBackupOptions.

    // Create a backup job:

    PS C:\PS> $crm = Find-VBRViEntity -Name "CRMdb_01"

    PS C:\PS> $repository = Get-VBRBackupRepository -Name 172.16.03.119

    PS C:\PS> Add-VBRViBackupJob -Name "CRM Backup" -Entity $crm -BackupRepository $repository

     

    // Add another VM to the job:

    PS C:\PS> $crmjob = Get-VBRJob -Name "CRM Backup"

    PS C:\PS> Find-VBRViEntity -Name "CRMdb_02" | Add-VBRViJobObject -Job $crmjob

     

    // Configure job schedule and enable it:

    PS C:\PS> Get-VBRJob -Name "CRM Backup" | Set-VBRJobSchedule -Daily -At "21:00" -DailyKind Weekdays | Enable-VBRJobSchedule

     

    // Set synthetic full and active full schedule:

    PS C:\PS> Get-VBRJob -Name "CRM Backup" | Set-VBRJobAdvancedBackupOptions -TransformFullToSyntethic -TransformIncrementsToSyntethic -TransformToSyntethicDays Sunday -EnableFullBackup -FullBackupScheduleKind Monthly -DayNumberInMonth Last -FullBackupDays Sunday