Add-VBRAmazonS3GlacierRepository
Short Description
Adds Amazon S3 Glacier archive storage repository to the backup infrastructure.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Add-VBRAmazonS3GlacierRepository -Connection <VBRAmazonS3Connection> -AmazonS3Folder <VBRAmazonS3Folder> [-AmazonProxySpec <VBRAmazonEC2ProxyAppliance>] [-Name <String>] [-Description <String>] [-UseDeepArchive] [-UseInstantRetrieval] [-EnableBackupImmutability] [-ImmutabilityMode <VBRRepositoryImmutabilityMode>] [-ImmutabilityPeriod <Int32>] [-EnableReadOnlyMode] [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet adds Amazon S3 Glacier archive storage repository to the backup infrastructure.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
AmazonProxySpec |
Specifies the archiver appliance that will transfer the data from Amazon S3 to Amazon S3 Glacier object storage.
Accepts the |
False |
Named |
True (ByPropertyName) |
|
|
AmazonS3Folder |
Specifies an Amazon S3 folder. Veeam Backup & Replication will move backup files into this folder.
Accepts the |
True |
Named |
True (ByValue) |
|
|
Connection |
Specifies an active session with an Amazon S3 Glacier object storage that you want to add as an archive repository.
Accepts the |
True |
Named |
False |
|
|
Description |
Specifies a description of an Amazon S3 Glacier object storage. The cmdlet will add object storage with this description. |
|
False |
Named |
False |
|
EnableBackupImmutability |
Enables the immutability option.
Default: |
|
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 |
Named |
False |
|
Force |
Defines that the cmdlet will add an object storage repository without showing warnings in the PowerShell console. |
|
False |
Named |
False |
|
ImmutabilityMode |
Specifies the immutability retention period:
|
|
False |
Named |
False |
|
ImmutabilityPeriod |
For the Defines the immutability period in days.
Default:
Maximum: |
|
False |
Named |
False |
|
Name |
Specifies a name of an Amazon S3 Glacier object storage. The cmdlet will add object storage with this name. |
|
False |
Named |
False |
|
UseDeepArchive |
Defines that the cmdlet will create a repository where blocks are marked with the Glacier Deep Archive storage class.
Note: If you do not provide the
Default: |
|
False |
Named |
False |
|
UseInstantRetrieval |
Defines that the cmdlet will create a repository where blocks are marked with the Amazon S3 Glacier Instant Retrieval storage class.
Note: If you do not provide the
Default: |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Adding Amazon S3 Glacier Repository to Backup Infrastructure
This example shows how to add Amazon S3 Glacier object storage as a backup repository to the backup infrastructure.
|
$account = Get-VBRAmazonAccount -AccessKey "XXXXXXXXXXXXXXXXXXX" -SecretKey "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" $connection = Connect-VBRAmazonS3Service -Account $account -RegionType Global -ServiceType ArchiveTier $bucket = Get-VBRAmazonS3Bucket -Connection $connection -Name "connect" $folder = Get-VBRAmazonS3Folder -Connection $connection -Bucket $bucket -Name "veeam" $region = Get-VBRAmazonS3Region -Account $account -RegionType Global -Name "ap-northeast-1" $instance = Get-VBRAmazonEC2InstanceType -Region $region -Name "al.xlarge" $vpc = Get-VBRAmazonEC2VPC -Region $region $sgroup = Get-VBRAmazonEC2SecurityGroup -VPC $vpc -Name "veeamvpc" $subnet = Get-VBRAmazonEC2Subnet -VPC $vpc -Name "veeamsubnet" $proxy = New-VBRAmazonEC2ProxyAppliance -InstanceType $instance -Subnet $subnet -SecurityGroup $sgroup -RedirectorPort 443 Add-VBRAmazonS3GlacierRepository -Connection $connection -AmazonS3Folder $folder -AmazonProxySpec $proxy -Name Repository09 |
Perform the following steps:
- Specify Amazon connection settings:
- Run the
Get-VBRAmazonAccountReturns AWS credentials records. cmdlet. Specify theAccessKeyandSecretKeyparameter values. Save the result to the$accountvariable. - Run the
Connect-VBRAmazonS3ServiceConnects to Amazon S3 object storage. cmdlet. Set the$accountvariable as theAccountparameter value. Specify theRegionTypeandServiceTypeparameter values. Save the result to the$connectionvariable.
- Run the
- Specify object storage settings:
- Run the
Get-VBRAmazonS3BucketReturns Amazon S3 buckets. cmdlet. Set the$connectionvariable as theConnectionparameter value. Specify theNameparameter value. Save the result to the$bucketvariable. - Run the
Get-VBRAmazonS3FolderReturns Amazon S3 folders. cmdlet. Set the$connectionvariable as theConnectionparameter value. Set the$bucketvariable as theBucketparameter value. Specify theNameparameter value. Save the result to the$foldervariable.
- Run the
- Define the Amazon proxy settings:
- Run the
Get-VBRAmazonS3RegionReturns Amazon S3 regions. cmdlet. Set the$accountvariable as theAccountparameter value. Specify theRegionTypeandNameparameter values. Save the result to the$regionvariable. - Run the
Get-VBRAmazonEC2InstanceTypeReturns an array of Amazon EC2 instances. cmdlet. Set the$regionvariable as theRegionparameter value. Specify theNameparameter value. Save the result to the$instancevariable. - Run the
Get-VBRAmazonEC2VPCReturns an Amazon VPC. cmdlet. Set the$regionvariable as theRegionparameter value. Save the result to the$vpcvariable. - Run the
Get-VBRAmazonEC2SecurityGroupReturns an array of AmazonEC2 security groups. cmdlet. Set the$vpcvariable as theVPCparameter value. Specify theNameparameter value. Save the result to the$sgroupvariable. - Run the
Get-VBRAmazonEC2SubnetReturns an array of Amazon VPC subnets. cmdlet. Set the$vpcvariable as theVPCparameter value. Specify theNameparameter value. Save the result to$subnetvariable. - Run the
New-VBRAmazonEC2ProxyApplianceDefines settings for Amazon EC2 helper appliances. cmdlet. Set the$instancevariable as theInstanceTypeparameter value. Set the$subnetvariable as theSubnetparameter value. Set the$sgroupvariable as theSecurityGroupparameter value. Specify theRedirectorPortparameter value. Save the result to$proxyvariable.
- Run the
- Run the
Add-VBRAmazonS3GlacierRepositorycmdlet. Specify the following settings:- Set the
$connectionvariable as theConnectionparameter value. - Set the
$foldervariable as theFolderparameter value. - Set the
$proxyvariable as theProxyparameter value. - Specify the
Nameparameter value.
- Set the
Related Commands
Get-VBRAmazonAccountReturns AWS credentials records.Connect-VBRAmazonS3ServiceConnects to Amazon S3 object storage.Get-VBRAmazonS3BucketReturns Amazon S3 buckets.Get-VBRAmazonS3FolderReturns Amazon S3 folders.Get-VBRAmazonS3RegionReturns Amazon S3 regions.Get-VBRAmazonEC2InstanceTypeReturns an array of Amazon EC2 instances.Get-VBRAmazonEC2VPCReturns an Amazon VPC.Get-VBRAmazonEC2SecurityGroupReturns an array of AmazonEC2 security groups.Get-VBRAmazonEC2SubnetReturns an array of Amazon VPC subnets.New-VBRAmazonEC2ProxyApplianceDefines settings for Amazon EC2 helper appliances.