--- title: "Add-VBRS3GlacierCompatibleRepository" description: "This cmdlet adds S3 compatible object storage with data archiving to the backup infrastructure. To be able to work with S3 compatible object storage with data archiving, you must enable the SOSAPI functionality." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/add-vbrs3glaciercompatiblerepository.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Backup Infrastructure > Object Storage Repositories > Adding Amazon S3 and S3 Compatible Object Storage > Add-VBRS3GlacierCompatibleRepository" dateModified: "2026-08-19" --- # Add-VBRS3GlacierCompatibleRepository ## Short Description Adds S3 compatible object storage with data archiving to the backup infrastructure. **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Add-VBRS3GlacierCompatibleRepository [-Name ] [-Description ] -AmazonS3Folder -Connection [-EnableBackupImmutability] [-ImmutabilityMode ] [-ImmutabilityPeriod ] [-ArchiverAppliance ] [-ForceOwnershipChange] [-EnableReadOnlyMode] [-Force] [] ``` ## Detailed Description This cmdlet adds S3 compatible object storage with data archiving to the backup infrastructure. ::: important To be able to work with S3 compatible object storage with data archiving, you must enable the SOSAPI functionality. For more information, see [Working with Veeam Smart Object Storage API (SOSAPI)](https://helpcenter.veeam.com/docs/vbr/userguide/sosapi.html?ver=13) section in Veeam Backup & Replication User Guide. ::: ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

AmazonS3Folder

Specifies a folder for S3 compatible object storage with data archiving. Veeam Backup & Replication will move backup files into this folder.

Accepts the VBRAmazonS3Folder object. To create this object, run the New-VBRAmazonS3Folder cmdlet. To get this object, run the Get-VBRAmazonS3Folder cmdlet.

VBRAmazonS3Folder

True

Named

True (ByValue)

ArchiverAppliance

Specifies the archiver appliance. The cmdlet will use it to transfer data from S3 compatible object storage to S3 compatible object storage with data archiving. You can use either Windows-based or Linux-based appliance.

Accepts the CHost object. To get this object, run the Get-VBRServer cmdlet.

CHost

False

Named

False

Connection

Specifies an active session with S3 compatible object storage that supports data archiving. The cmdlet use it to add S3 compatible object storage as a backup repository.

Accepts the VBRAmazonS3Connection object. To get this object, run the Connect-VBRAmazonS3CompatibleService cmdlet and set the ArchiveTier property as the ServiceType parameter value.

VBRAmazonS3CompatibleConnection

True

Named

False

Description

Specifies a description of S3 compatible object storage with data archiving. The cmdlet will add S3 compatible object storage with this description.

String

False

Named

False

EnableBackupImmutability

Enables immutability for S3 compatible object storage with data archiving.

Default: False.

SwitchParameter

False

Named

False

EnableReadOnlyMode

Defines that the cmdlet will add the object storage repository in the read-only mode. If you enable this option, Veeam Backup & Replication will not write or modify data in the object storage repository. You can use the object storage repository for restore operations only.

Default: False.

SwitchParameter

False

Named

False

Force

Defines that the cmdlet will add S3 compatible object storage with data archiving without showing warnings in the PowerShell console.

SwitchParameter

False

Named

False

ForceOwnershipChange

Defines that the cmdlet will force ownership change of the folder for S3 compatible that supports data archiving.

If you do not provide this parameter and the S3 compatible object storage folder is owned by another host, you will not be able to add S3 compatible object storage to the backup infrastructure.

Default: False.

SwitchParameter

False

Named

False

ImmutabilityMode

Specifies the immutability retention period:

  • BackupRetention: Use this option if you want the immutability period to depend on the backup job retention.
  • RepositoryRetention: Use this option if you want to ignore the job retention and specify the immutability period explicitly.

VBRRepositoryImmutabilityMode

False

Named

False

ImmutabilityPeriod

For the EnableBackupImmutability parameter.

Defines the immutability period in days.

Default: 30 days.

Maximum: 999 days.

Int32

False

Named

False

Name

Specifies a name of S3 compatible object storage with data archiving. The cmdlet will add S3 compatible object storage with this name.

String

False

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Output Object [`VBRS3GlacierCompatibleRepository`](vbrs3glaciercompatiblerepository.md) ## Examples ::: example ### Adding S3 Compatible Object Storage with Data Archiving This example shows how to add S3 compatible object storage with data archiving to the backup infrastructure. ``` $account = Get-VBRAmazonAccount $connect = Connect-VBRAmazonS3CompatibleService -Account $account[0] -CustomRegionId "us-east-1" -ServicePoint "http://172.24.185.88:80" -ServiceType ArchiveTier $folder = New-VBRAmazonS3Folder -Bucket $bucket[1] -Connection $connect -Name "TW02" $s3Archive = Add-VBRS3GlacierCompatibleRepository -AmazonS3Folder $folder -Name "Monthly_Reports" -Connection $connect ``` Perform the following steps: 1. Run the [`Get-VBRAmazonAccount`](get-vbramazonaccount.md) cmdlet. Save the result to the `$account` variable. 2. Run the [`Connect-VBRAmazonS3CompatibleService`](connect-vbramazons3compatibleservice.md) cmdlet. Specify the `Account`, `CustomRegionId`, `ServicePoint` and the `ServiceType` parameter values. Save the result to the `$connect` variable. 3. Run the [`New-VBRAmazonS3Folder`](new-vbramazons3folder.md) cmdlet. Specify the `Bucket`, `Connection` and `Name` parameter values. Save the result to the `$folder` variable. 4. Run the `Add-VBRS3GlacierCompatibleRepository` cmdlet. Specify the following settings: - Set the `$folder` variable as the `AmazonS3Folder` parameter value. - Set the `$connect` variable as the `Connection` parameter value. - Set the `Name` parameter value. - Save the result to the `$s3Archive` variable. ::: ## Related Commands - [`Get-VBRAmazonAccount`](get-vbramazonaccount.md) - [`Connect-VBRAmazonS3CompatibleService`](connect-vbramazons3compatibleservice.md) - [`New-VBRAmazonS3Folder`](new-vbramazons3folder.md)