Set-VBRUnstructuredBackupArchivalOptions
Short Description
Modifies a scope of file versions to keep on an archive repository for file backup job or object storage backup job.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRUnstructuredBackupArchivalOptions -Options <VBRUnstructuredBackupArchivalOptions> [-ArchivalType <VBRUnstructuredBackupArchivalType>] [-InclusionMask <String[]>] [-ExclusionMask <String[]>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies settings of a scope of file versions to keep on an archive repository for file backup job or object storage backup job.
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 |
|---|---|---|---|---|---|
|
ArchivalType |
Specifies the filter settings for file versions that you want to keep on the archive repository. You can specify one of the following filter settings:
|
|
False |
Named |
False |
|
ExclusionMask |
For the Specifies a file mask for files and folders that you do not want to add to the file backup job or object storage backup job. |
|
False |
Named |
False |
|
InclusionMask |
For the Specifies a file mask for files and folders that you want to add to the file backup job or object storage backup job. The cmdlet will back up only these files and folders. |
|
False |
Named |
False |
|
Options |
Specifies the scope of file versions. The cmdlet will modify this scope.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRUnstructuredBackupArchivalOptions object that contains scope settings of files to keep on an archive repository for file backup job or object storage backup job.
Examples
Modifying Scope of File Versions
This example shows how to modify a scope of file versions that are located on an archive repository. The archive repository will have the following file version settings:
- The long-term repository will keep .
DOCXand .PDFfile extensions. - The long-term repository will not keep .
EXEand.JPEGfile extensions.
|
$archiveoptions = New-VBRUnstructuredBackupArchivalOptions -ArchivalType ExclusionMask -ExclusionMask ('*.jpeg', '*.exe') Set-VBRUnstructuredBackupArchivalOptions -Options $archiveoptions -ArchivalType InclusionMask -InclusionMask ('*.docx', '*.pdf') |
Perform the following steps:
- Run the
New-VBRUnstructuredBackupArchivalOptionsDefines a scope of file versions to keep on an archive repository for file backup job or object storage backup job. cmdlet. Specify theArchivalTypeandExclusionMaskparameters values. Save the result to the$archiveoptionsvariable. - Run the
Set-VBRUnstructuredBackupArchivalOptionscmdlet. Specify the following settings:- Set the
$archiveoptionsvariable as theOptionsparameter value. - Set the
InclusionMaskas theArchivalTypeparameter value. - Specify the
InclusionMaskparameter value.
- Set the
Related Commands
New-VBRUnstructuredBackupArchivalOptionsDefines a scope of file versions to keep on an archive repository for file backup job or object storage backup job.