Short Description
Adds a backup item to the specified backup job.
Syntax
Add-VBOBackupItem -Job <VBOJob> [-BackupItem] [<CommonParameters>] |
Detailed Description
This cmdlet adds a backup item to the Veeam Backup for Microsoft Office 365 backup job.
|
Before adding a backup item to the backup job, make sure you are familiar with the following restrictions:
If you add a backup item again to the same job, the fresh backup item will fully replace the old one. |
Parameters
Parameter | Description | Required | Position | Accept | Accept |
BackupItem | Specifies a backup item. The backup job will back up this backup item. | False | Named | false | False |
Job | Specifies the backup job that will back up this backup item. | True | 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 shows how to add an organization user "UserAlpha" backup item to the "TestJob" backup job.
You will need to perform the following steps:
- Run Get-VBOOrganization to get an organization. Save the result to the $org variable.
- Run Get-VBOOrganizationUser to get an organization user. In this case we will use it as a backup item. Save the result to the $user variable.
- Run New-VBOBackupItem to select the item for the backup job. Save the result to the $backupItemUser variable.
- Run Get-VBOJob to select the backup job for modification. Save the result to the $job variable.
- Run Add-VBOBackupItem with the $job and $backupItemUser variables to add the selected user to the specified backup job.
PS C:\PS> $org = Get-VBOOrganization -Name "ABC Company" PS C:\PS> $user = Get-VBOOrganizationUser -Organization $org -Name "UserAlpha" PS C:\PS> $backupItemUser = New-VBOBackupItem -User $user -Mailbox:$True -ArchiveMailbox:$False -OneDrive:$False PS C:\PS> $job = Get-VBOJob -Name "TestJob" PS C:\PS> Add-VBOBackupItem -Job $job -BackupItem $backupItemUser |