Set-VBOJob
Short Description
Modifies settings of a backup job.
Syntax
This cmdlet provides the following parameter sets:
-
JobInfoParameterSet (Default)Set-VBOJob -Job <VBOJob> [-Name <String>] [-Repository <VBORepository>] [-Description <String>] [-RunJob]
[-SchedulePolicy <VBOJobSchedulePolicy>] [-EnableSelectedOneDriveFolders] [-EnableExcludedOneDriveFolders] [<CommonParameters>]
-
AllItemsParameterSetSet-VBOJob -Job <VBOJob> [-Name <String>] [-Repository <VBORepository>] [-Description <String>]
[-EntireOrganization] [-ExcludedItems <VBOBackupItem[]>] [-RunJob] [-SchedulePolicy <VBOJobSchedulePolicy>]
[-EnableSelectedOneDriveFolders] [-SelectedOneDriveFolders <String[]>] [-EnableExcludedOneDriveFolders]
[-ExcludedOneDriveFolders <String[]>] [<CommonParameters>]
-
SpecificItemsParameterSetSet-VBOJob -Job <VBOJob> [-Name <String>] [-Repository <VBORepository>] [-Description <String>]
[-SelectedItems <VBOBackupItem[]>] [-ExcludedItems <VBOBackupItem[]>] [-RunJob]
[-SchedulePolicy <VBOJobSchedulePolicy>] [-EnableSelectedOneDriveFolders]
[-SelectedOneDriveFolders <String[]>] [-EnableExcludedOneDriveFolders] [-ExcludedOneDriveFolders <String[]>] [<CommonParameters>]
Detailed Description
This cmdlet modifies settings of a backup job. To modify settings, you need to enter the necessary parameters with new values. The parameters that you omit will remain unchanged.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Description |
Specifies a description of the backup job. The cmdlet will replace the current description with the specified description. |
|
False |
Named |
False |
|
EnableExcludedOneDriveFolders |
Defines that a backup job will not back up the specified excluded OneDrive folders. Default: False |
|
False |
Named |
False |
|
EnableSelectedOneDriveFolders |
Defines that a backup job will back up the specified selected OneDrive folders. Default: False |
|
False |
Named |
False |
|
EntireOrganization |
Defines that a job will back up all objects of the organization. If you provide this parameter, the cmdlet will add all objects of the organization to the backup job. Otherwise, you must select objects that you want to back up. Default: False Note: The backup job will not back up objects, processed by other backup jobs. |
|
True |
Named |
False |
|
ExcludedItems |
Specifies an array of objects that the job will not back up.
Note: You cannot exclude objects that have been specified for the
Accepts the
To get this object, run the |
False |
Named |
False |
|
|
ExcludedOneDriveFolders |
Specifies an array of OneDrive folders that a backup job will not back up. |
|
False |
Named |
False |
|
Job |
Specifies a backup job. The cmdlet will modify this job.
Accepts the
To get this object, run the |
True |
Named |
True (ByValue) |
|
|
Name |
Specifies a new name of a backup job. The cmdlet will replace the current name with the specified name. |
|
False |
Named |
False |
|
Repository |
Specifies a backup repository. Veeam Backup for Microsoft 365 will store backups created by a backup job you modify on this repository. The cmdlet will replace the current backup repository with the specified backup repository.
Accepts the
To get this object, run the |
False |
Named |
False |
|
|
RunJob |
Defines that a backup job will run right after you create it. If you provide this parameter, the job will start after you run the script. Otherwise, the cmdlet will create a backup job in the stopped status. Default: False |
|
False |
Named |
False |
|
SchedulePolicy |
Specifies schedule settings for a backup job.
Accepts the
To create this object, run the |
False |
Named |
False |
|
|
SelectedItems |
Specifies an array of objects that a job will back up.
Accepts the
To get this object, run the |
False |
Named |
False |
|
|
SelectedOneDriveFolders |
Specifies an array of OneDrive folders that a backup job will back up. |
|
False |
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.
Output Object
The cmdlet returns the VBOJob object that contains settings for a backup job.
Examples
Example 1: Modifying Backup Repository and Selected Items for Backup Job
|
This example shows how to modify the following settings of a backup job:
Perform the following steps:
|
Example 2: Excluding Objects from Backup Job
|
This example shows how to exclude objects from a backup job.
Perform the following steps:
|
Example 3: Setting New Schedule for Backup Job
|
This example shows how to set new schedule settings for a backup job. The job will run with the following settings:
Perform the following steps:
|
Example 4: Defining OneDrive Folders that Backup Job will Back Up
|
This example shows how to specify an array of OneDrive folders that a backup job will back up.
Perform the following steps:
|
Example 5: Defining OneDrive Folders to Exclude from Backup Job
|
This example shows how to specify an array of OneDrive folders that a backup job will not back up.
Perform the following steps:
|
Example 6: Modifying Backup Repository and Name for Backup Job
|
This example shows how to change a backup repository and a name for a backup job.
Perform the following steps:
|
Related Commands
Get-VBOJobReturns backup jobs.Get-VBOOrganizationReturns Microsoft organizations added to the Veeam Backup for Microsoft 365 infrastructure.Get-VBORepositoryReturns backup repositories.Get-VBOOrganizationUserReturns organization users.New-VBOBackupItemCreates organization objects.Get-VBOBackupItemReturns a list of objects included in a backup job.New-VBOBackupWindowSettingsCreates a backup window.New-VBOJobSchedulePolicyCreates a backup job schedule.