Set-VBORepository
Short Description
Modifies settings of a backup repository.
Syntax
This cmdlet provides the following parameter sets:
-
StandardRetentionParameterSet (Default)Set-VBORepository -Repository <VBORepository> [-Name <String>] [-Description <String>]
[-RetentionPeriod <VBORetentionPeriod>] [-RetentionFrequencyType <VBORetentionFrequencyType>]
[-DailyTime <TimeSpan>] [-DailyType <VBODailyType>] [-MonthlyTime <TimeSpan>]
[-MonthlyDayNumber <VBOMonthlyDayNumber>] [-MonthlyDayOfWeek <DayOfWeek>] [<CommonParameters>]
-
CustomRetentionParameterSetSet-VBORepository -Repository <VBORepository> [-Name <String>] [-Description <String>]
[-CustomRetentionPeriodType <VBORetentionPeriodType>] [-CustomRetentionPeriod <Int32>]
[-RetentionFrequencyType <VBORetentionFrequencyType>] [-DailyTime <TimeSpan>] [-DailyType <VBODailyType>]
[-MonthlyTime <TimeSpan>] [-MonthlyDayNumber <VBOMonthlyDayNumber>] [-MonthlyDayOfWeek <DayOfWeek>] [<CommonParameters>]
Detailed Description
This cmdlet modifies settings of a backup repository added to the Veeam Backup for Microsoft 365 infrastructure. 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 |
|---|---|---|---|---|---|
|
CustomRetentionPeriod |
For the
Specifies the retention period to keep data on a backup repository. The retention period is defined according to the
Veeam Backup for Microsoft 365 will remove items from a backup repository once this period is passed. |
|
False |
Named |
False |
|
CustomRetentionPeriodType |
Specifies a type of the custom retention period. Veeam Backup for Microsoft 365 will remove items from a backup repository once this period is passed. You can set the custom retention period to either of the following types:
Set the |
|
False |
Named |
False |
|
DailyTime |
For daily retention policy schedule. Specifies the time of the day when Veeam Backup for Microsoft 365 must apply the retention policy. Default: 00:00:00 |
|
False |
Named |
False |
|
DailyType |
For daily retention policy schedule. Specifies the days when Veeam Backup for Microsoft 365 must apply the retention policy:
Default: Everyday |
|
False |
Named |
False |
|
Description |
Specifies a description of the backup repository. The cmdlet will replace the current description with the specified description. |
|
False |
Named |
False |
|
MonthlyDayNumber |
For monthly retention policy schedule. Specifies the order number for the day of the week when Veeam Backup for Microsoft 365 must apply the retention policy.
Default: First |
|
False |
Named |
False |
|
MonthlyDayOfWeek |
For monthly retention policy schedule. Specifies the day of the week when Veeam Backup for Microsoft 365 must apply the retention policy.
Default: Monday |
|
False |
Named |
False |
|
MonthlyTime |
For monthly retention policy schedule. Specifies the time of the day when Veeam Backup for Microsoft 365 must apply the retention policy. Default: 18:00:00 |
|
False |
Named |
False |
|
Name |
Specifies a name of the backup repository. The cmdlet will replace the current name with the specified name. |
|
False |
Named |
False |
|
Repository |
Specifies a backup repository. The cmdlet will modify settings of this backup repository.
Accepts the
To get this object, run the |
True |
Named |
True (ByValue) |
|
|
RetentionFrequencyType |
Specifies retention policy schedule. Veeam Backup for Microsoft 365 will check a backup repository and will remove the outdated backups according to this schedule. You can set either of the following types of schedule:
Default: Daily |
|
False |
Named |
False |
|
RetentionPeriod |
Specifies the retention period in years. Veeam Backup for Microsoft 365 will remove items from a backup repository once this period is passed. You can set either of the following periods:
Default: Years3
Note: Apply the |
|
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 VBORepository object that contains settings of the Veeam Backup for Microsoft 365 repository.
Examples
Example 1: Modifying Retention Policy Settings
|
This example shows how to modify retention policy settings for the backup repository. The repository will have the following settings:
Perform the following steps:
|
Example 2: Modifying Backup Repository Name and Retention Policy
|
This example shows how to change the name of the ABC Backup backup repository and configure the clean-up schedule with the following settings:
Perform the following steps:
|
Related Commands
Get-VBORepositoryReturns backup repositories.