--- title: "Set-VBOAmazonS3CompatibleRepository" description: "This cmdlet modifies settings of S3 Compatible object storage repository added to the Veeam Backup for Microsoft 365 infrastructure. To modify settings, you need to enter the necessary parameters with new values." canonical: "https://helpcenter.veeam.com/docs/vbo365/powershell/set-vboamazons3compatiblerepository.html" breadcrumb: "PowerShell Reference > Veeam Backup for Microsoft 365 PowerShell Reference > Backup Infrastructure > JET-based Backup Repositories and Object Storage Repositories > Set-VBOAmazonS3CompatibleRepository" dateModified: "2026-08-21" --- # Set-VBOAmazonS3CompatibleRepository ## Short Description Modifies settings of S3 Compatible object storage repository. ## Syntax This cmdlet provides the following parameter sets:
StandardRetentionParameterSet (Default)
CustomRetentionParameterSet
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
CustomRetentionPeriod |
For the Specifies the retention period to keep data on the object storage repository. The retention period is defined according to the
Veeam Backup for Microsoft 365 will remove items from the object storage repository once this period is passed. |
|
False |
Named |
False |
|
CustomRetentionPeriodType |
Specifies a type of custom retention period. Veeam Backup for Microsoft 365 will remove items from the object storage 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 S3 Compatible object storage repository. The cmdlet will replace the current description with the specified description. |
|
False |
Named |
False |
|
EnableDefragmentation |
Defines that the cmdlet will enable defragmentation for the specified S3 Compatible object storage repository. After applying the retention policy, Veeam Backup for Microsoft 365 will start merging small blobs of data into a bigger one. Default: False |
|
False |
Named |
False |
|
EnableSizeLimit |
Defines that the cmdlet will enable a soft limit in GB for the object storage repository consumption that can be exceeded temporarily. Use the Default: False |
|
False |
Named |
False |
|
ImmutabilityPeriodDays |
Specifies the number of days when your data will be blocked for deletion or modification. Note: If you set the null or 0 value, data will be blocked for deletion or modification for the same period as the retention period. |
|
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 S3 Compatible object storage repository. The cmdlet will change the name of this object storage repository. |
|
False |
Named |
False |
|
Repository |
Specifies S3 Compatible object storage repository. The cmdlet will modify settings of this object storage 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 the object storage 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 the object storage repository once this period is passed. You can set either of the following periods:
Default: Years3 Note: Apply the |
|
False |
Named |
False |
|
SizeLimit |
For the Specifies a soft limit in GB for the object storage repository consumption that can be exceeded temporarily. If the specified limit is exceeded, Veeam Backup for Microsoft 365 will not run a new job. Permitted values: 1024–1073741824. Default: 1024 Note: In PowerShell you can specify a soft limit in GB only. |
|
False |
Named |
False |
|
TrustServerCertificate |
Defines that Veeam Backup for Microsoft 365 will trust S3 Compatible self-signed certificates. If you omit this parameter, Veeam Backup for Microsoft 365 will not trust S3 Compatible self-signed certificates. Default: False |
|
False |
Named |
False |