Add-VBOBackupItem
Short Description
Adds a list of objects to a backup job.
Syntax
|
Add-VBOBackupItem -Job <VBOJob> -BackupItem <VBOBackupItem[]> [<CommonParameters>] |
Detailed Description
This cmdlet adds a list of objects to a backup job. The job will process these objects.
Note |
|
Before you add an object to a backup job, consider the following restrictions:
|
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
BackupItem |
Specifies an array of objects. The cmdlet will add them to a list of included objects.
Accepts the
|
True |
Named |
False |
|
|
Job |
Specifies a backup job. The cmdlet will add an array of objects to this job.
Accepts the
To get this object, run the |
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Examples
Adding User Backup Item to Backup Job
This example shows how to add an organization user UserAlpha backup item to the TestJob backup job.
|
$org = Get-VBOOrganization -Name "ABC Company" $user = Get-VBOOrganizationUser -Organization $org -DisplayName "UserAlpha" $backupItemUser = New-VBOBackupItem -User $user -Mailbox:$True -ArchiveMailbox:$false -OneDrive:$false $job = Get-VBOJob -Name "TestJob" Add-VBOBackupItem -Job $job -BackupItem $backupItemUser |
Perform the following steps:
- Run the
Get-VBOOrganizationReturns Microsoft organizations added to the Veeam Backup for Microsoft 365 infrastructure. cmdlet to get an organization. Save the result to the$orgvariable. - Run the
Get-VBOOrganizationUserReturns organization users. cmdlet to get an organization user. It will be used as a backup item. Save the result to the$uservariable. - Run the
New-VBOBackupItemCreates organization objects. cmdlet to select the item for the backup job. Save the result to the$backupItemUservariable. - Run the
Get-VBOJobReturns backup jobs. cmdlet to select the backup job for modification. Save the result to the$jobvariable. - Run the
Add-VBOBackupItemcmdlet with the$joband$backupItemUservariables to add the selected user to the specified backup job.
Related Commands
Get-VBOOrganizationReturns Microsoft organizations added to the Veeam Backup for Microsoft 365 infrastructure.Get-VBOOrganizationUserReturns organization users.New-VBOBackupItemCreates organization objects.Get-VBOBackupItemReturns a list of objects included in a backup job.Get-VBOJobReturns backup jobs.