Add-VBRAmazonS3Repository

Short Description

Adds Amazon S3 object storage repository to the backup infrastructure.

Platform: VMware, Hyper-V

Product Edition: Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Add-VBRAmazonS3Repository [-Name <String>] [-Description <String>] -AmazonS3Folder <VBRAmazonS3Folder>

-Connection <VBRAmazonS3Connection> [-EnableSizeLimit] [-SizeLimit <Int32>] [-EnableIAStorageClass]

[-EnableOZIAStorageClass] [-EnableBackupImmutability] [-ImmutabilityMode <VBRRepositoryImmutabilityMode>]

[-ImmutabilityPeriod <Int32>] [-MountServerOptions <VBRRepositoryMountServerOptions[]>]

[-AmazonProxySpec <VBRAmazonEC2ProxyAppliance>] [-EnableConcurrentTasksLimit] [-MaxConcurrentTasks <Int32>]

[-ForceOwnershipChange] [-EnableReadOnlyMode] [-Force] [<CommonParameters>]

Detailed Description

This cmdlet adds Amazon S3 object storage repository to the backup infrastructure.

Important

Run the Add-VBRAmazonS3ExternalRepositoryAdds external Amazon S3 storage repository to the backup infrastructure. to add Amazon S3 object storage as an external backup repository.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

AmazonProxySpec

Specifies a helper appliance. Veeam Backup & Replication will use this appliance to perform a health check of backup files and apply retention to file backup job files.

Accepts the VBRAmazonEC2ProxyAppliance object. To create this object, run the New-VBRAmazonEC2ProxyApplianceDefines settings for Amazon EC2 helper appliances. cmdlet.

VBRAmazonEC2ProxyAppliance

False

Named

True (ByPropertyName)

AmazonS3Folder

Specifies an Amazon S3 folder.

Accepts the VBRAmazonS3Folder object. To get this object, run the Get-VBRAmazonS3FolderReturns Amazon S3 folders. cmdlet.

VBRAmazonS3Folder

True

Named

True (ByValue)

Connection

Specifies an active session with Amazon S3 object storage that you want to add as the backup repository.

Accepts the VBRAmazonS3Connection object. To get this object, run the Connect-VBRAmazonS3ServiceConnects to Amazon S3 object storage. cmdlet and set the CapacityTier property as the ServiceType parameter value.

VBRAmazonS3Connection

True

Named

False

Description

Specifies a description of an Amazon S3 object storage. The cmdlet will add object storage with this description.

String

False

Named

False

EnableBackupImmutability

Defines that the cmdlet will enable the immutability option.

Default: False.

SwitchParameter

False

Named

False

EnableConcurrentTasksLimit

Enables limits for concurrent tasks that can be processed by the object storage repository.

Use the MaxConcurrentTasks parameter to specify the number of tasks.

Default: False.

SwitchParameter

False

Named

False

EnableIAStorageClass

Defines that the cmdlet will enable the infrequent access storage class for data blocks that are stored in an Amazon S3 object storage.

Default: False.

SwitchParameter

False

Named

False

EnableOZIAStorageClass

Defines that the cmdlet will enable the One Zone-IA storage class for data blocks that are stored in an Amazon S3 object storage.

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

EnableSizeLimit

Enables size limits for data blocks that you want to store in an Amazon S3 object storage.

Use the SizeLimit parameter to specify the size limits.

Default: False.

SwitchParameter

False

Named

False

Force

Defines that the cmdlet will add an object storage repository without showing warnings in the PowerShell console.

SwitchParameter

False

Named

False

ForceOwnershipChange

Defines that the cmdlet will force ownership change of the object storage folder.

If you do not provide this parameter and the object storage folder is owned by another host, you will not be able to add 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

Int32

False

Named

False

MaxConcurrentTasks

Specifies a maximum number of concurrent tasks that can be processed at once by the object storage repository.

Int32

False

Named

False

MountServerOptions

Specifies settings of a mount server for object storage repositories.

Note: This parameter is required for object storage repositories that you want to add as performance extents to a scale-out backup repository.

Accepts the VBRRepositoryMountServerOptions object. To create this object, run the New-VBRRepositoryMountServerOptionsDefines settings of a mount server. cmdlet.

VBRRepositoryMountServerOptions[]

False

Named

True (ByPropertyName)

Name

Specifies a name of an Amazon S3 object storage. The cmdlet will add object storage with this name.

String

False

Named

False

SizeLimit

For the EnableSizeLimit parameter.

Specifies size limits in GB for data blocks that you want to store in an Amazon S3 object storage.

Permitted value: 10241073741824.

Default: 10240 GB.

Int32

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

VBRAmazonS3Repository

Examples

Adding Amazon S3 Object Storage to Backup Infrastructure

This example shows how to add Amazon S3 object storage as a backup repository to Veeam Backup & Replication. The repository will have the following settings:

  • The object storage limits are enabled and are set to 1024 GB.
  • The infrequent access storage class is enabled.

$account = Get-VBRAmazonAccount

$connect = Connect-VBRAmazonS3Service -Account $account[1] -RegionType Global -ServiceType CapacityTier

$bucket = Get-VBRAmazonS3Bucket -Connection $connect -Name "Bucket-01"

$folder = Get-VBRAmazonS3Folder -Name "bucket" -Bucket $bucket -Connection $connect

Add-VBRAmazonS3Repository -Name "AmazonS3Repository" -Connection $connect -AmazonS3Folder $folder -EnableIAStorageClass -EnableSizeLimit -SizeLimit 1024

Perform the following steps:

  1. Run the Get-VBRAmazonAccountReturns AWS credentials records. cmdlet. Save the result to the $account variable.
  2. Run the Connect-VBRAmazonS3ServiceConnects to Amazon S3 object storage. cmdlet. Specify the Account, RegionType and ServiceType parameter values. Save the result to the $connect variable.
  3. Run the Get-VBRAmazonS3BucketReturns Amazon S3 buckets. cmdlet. Set the $connect variable as the Connection parameter value. Specify the Name parameter value. Save the result to the $bucket variable.
  4. Run the Get-VBRAmazonS3FolderReturns Amazon S3 folders. cmdlet. Specify the Name parameter value. Set the $bucket variable as the Bucket parameter value. Set the $connect variable as the Connection parameter value. Save the result to the $folder variable.
  5. Run the Add-VBRAmazonS3Repository cmdlet. Specify the following settings:

    • Specify the Name parameter value.
    • Set the $connect variable as the Connection parameter value.
    • Set the $folder variable as the AmazonS3Folder parameter value.
    • Provide the EnableIAStorageClass parameter.
    • Provide the EnableSizeLimit parameter.
    • Provide the SizeLimit parameter value.

Page updated 2026-08-19

Page content applies to build 13.1.1.18