Set-VBRSelectedFilesBackupOptions
Short Description
Modifies the backup scope settings for Veeam Agent backup jobs.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRSelectedFilesBackupOptions -Options <VBRSelectedFilesBackupOptions> [-BackupOS] [-BackupPersonalFiles] [-SelectedPersonalFolders <VBRSelectedPersonalFolders>] [-BackupSelectedFiles] [-SelectedFiles <String[]>] [-IncludeMask <String[]>] [-ExcludeMask <String[]>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies the backup scope settings for Veeam Agent backup jobs.
Tip |
|
For Windows machines you can use system environment variables to specify the backup scope and the exclude mask settings. You must type the backslash sign before the environment variable. For example: \%TEMP%, \%ProgramFiles% or \%WinDir%. |
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
BackupOS |
Note: This option works only for Veeam Agent jobs that back up Windows machines. Defines that Veeam Backup & Replication will include the OS related data into the backup scope. |
|
False |
Named |
False |
|
BackupPersonalFiles |
Note: This option works only for Veeam Agent jobs that back up Windows machines. Defines that Veeam Backup & Replication will include all user profile folders into the backup scope except for the roaming user profiles and data stored in the OneDrive folder. |
|
False |
Named |
False |
|
BackupSelectedFiles |
Defines that Veeam Backup & Replication will include the following types of folders into the backup scope:
Use the |
|
False |
Named |
False |
|
ExcludeMask |
Specifies the files that you want to exclude from the backup scope. You can specify the following types of files:
|
|
False |
Named |
False |
|
IncludeMask |
Specifies the file names and/or masks for file types that you want to include into the backup scope. |
|
False |
Named |
False |
|
Options |
Specifies the file-level backup scope settings that you want to modify.
Accepts the |
|
True |
Named |
True (ByValue) |
|
SelectedFiles |
For the Specifies the backup scope settings. To back up the folders, you must specify either of the following settings:
|
|
False |
Named |
False |
|
SelectedPersonalFolders |
Defines the scope of personal data for Agent Backup jobs that back up Microsoft Windows machines.
Note: To use this setting, you must provide the
Accepts the |
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
This cmdlet returns the VBRSelectedFilesBackupOptions object that contains the backup scope settings.
Examples
Modifying Existing Backup Scope Settings for Windows Computer
This example shows how to modify the existing backup scope settings for a Windows computer.
|
$scope = New-VBRSelectedFilesBackupOptions -OSPlatform Windows -BackupPersonalFiles Set-VBRSelectedFilesBackupOptions -Options $scope -BackupOS |
Perform the following steps:
- Run the
New-VBRSelectedFilesBackupOptionsDefines backup scope settings for Veeam Agent backup jobs. cmdlet. Set theWindowsvalue for theOSPlatformparameter. Provide theBackupPersonalFilesparameter. Save the result to the$scopevariable. - Run the
Set-VBRSelectedFilesBackupOptionscmdlet. Set the$scopevariable as theOptionsparameter value. Provide theBackupOSparameter.
Related Commands
New-VBRSelectedFilesBackupOptionsDefines backup scope settings for Veeam Agent backup jobs.