Set-VBRNASBackupArchivalOptions (obsolete)
Short Description
Modifies retention policy for file versions.
Note |
|
This cmdlet is obsolete. Run the |
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
Credentials (Default)Set-VBRMySQLProcessingOptions -Options <VBRMySQLProcessingOptions> [-Credentials <CCredentials>] [<CommonParameters>]
-
PasswordFilePathSet-VBRMySQLProcessingOptions -Options <VBRMySQLProcessingOptions> [-PasswordFilePath <String>] [<CommonParameters>]
Detailed Description
This cmdlet modifies settings of retention policy for file versions that are kept on the long-term repository.
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 |
|---|---|---|---|---|---|
|
Credentials |
Specifies the MySQL credentials that Veeam Agent will use to connect to the MySQL Server. Accepts the CCredentials object. To get this object, run the Get-VBRCredentials cmdlet. |
|
False |
Named |
False |
|
Options |
Specifies the retention policy for file versions. The cmdlet will modify the settings of this policy.
Accepts the |
|
True |
Named |
True (ByValue) |
|
PasswordFilePath |
Specifies the absolute path for the password file. Veeam Agent will use this password file to connect to the MySQL Server. Default: /root/.my.cnf. Note:
|
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Modifying Filter Settings of Retention Policy for Deleted File Versions
This example shows how to modify filter settings of the retention policy for deleted file versions. The retention policy will have the following settings:
- The long-term repository will keep .
DOCXand .PDFfile extensions. - The long-term repository will not keep .
EXEand.JPEGfile extensions.
|
$archiveOptions = New-VBRNASBackupArchivalOptions -ArchivalType ExclusionMask -ExclusionMask ('*.jpeg', '*.exe') $newArchiveOptions = Set-VBRNASBackupArchivalOptions -Options $archiveOptions -ArchivalType InclusionMask -InclusionMask ('*.docx', '*.pdf') |
Perform the following steps:
- Run the
New-VBRNASBackupArchivalOptionsDefines long-term retention policy for file versions of backed up files from file shares. This cmdlet is obsolete. Run the New-VBRUnstructuredBackupArchivalOptions cmdlet instead. cmdlet. Specify theExclusionMaskparameter value. Save the result to the$archiveOptionsvariable. - Run the
Set-VBRNASBackupArchivalOptionscmdlet. Specify the following settings:- Set the
$archiveoptionsvariable as theOptionsparameter value. - Set the
InclusionMaskas theArchivalTypeparameter value. - Specify the
InclusionMaskparameter value. - Save the result to the
$newArchiveOptionsvariable to be used with other cmdlets.
- Set the
Related Commands
New-VBRNASBackupArchivalOptionsDefines long-term retention policy for file versions of backed up files from file shares. This cmdlet is obsolete. Run the New-VBRUnstructuredBackupArchivalOptions cmdlet instead.