New-VBRAmazonS3Folder
Short Description
Creates Amazon S3 folders.
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
New-VBRAmazonS3Folder -Connection <IVBRAmazonS3Connection> -Bucket <VBRAmazonS3Bucket> -Name <String> [<CommonParameters>] |
Detailed Description
This cmdlet creates Amazon S3 folders in the selected bucket. Veeam Backup & Replication will use these folders to keep backup files there. You can create a new folder for the following types of Amazon object storage:
- Amazon S3
- S3 compatible (including IBM Cloud Object Storage)
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Bucket |
Specifies an Amazon S3 bucket. The cmdlet will add a new Amazon S3 folder to this bucket.
Accepts the |
True |
Named |
True (ByValue) |
|
|
Connection |
Specifies an active session with Amazon S3 object storage. The cmdlet will create a new folder in this Amazon S3 object storage.
Accepts the |
|
True |
Named |
False |
|
Name |
Specifies a name of the Amazon S3 folder. The cmdlet will create the Amazon S3 folder with this name. |
|
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
VBRAmazonS3Folder
Examples
Creating New Amazon S3 Folder
This example shows how to create a new Amazon S3 folder.
|
$account = Get-VBRAmazonAccount -Id "0x0x0xxx-000x-0x0x-000-000x00000x0x" $connection = Connect-VBRAmazonS3Service -Account $account -RegionType Global -ServiceType CapacityTier $bucket = Get-VBRAmazonS3Bucket -Connection $connection New-VBRAmazonS3Folder -Connection $connection -Bucket $bucket -Name "NewFolder" |
Perform the following steps:
- Run the
Get-VBRAmazonAccountReturns AWS credentials records. cmdlet. Specify theIdparameter value. 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
Get-VBRAmazonS3BucketReturns Amazon S3 buckets. cmdlet. Set the$connectionvariable as theConnectionparameter value. Save the result to the$bucketvariable. - Run the
New-VBRAmazonS3Foldercmdlet. Set the$connectionvariable as theConnectionparameter value. Set the$bucketvariable as theBucketparameter value. Specify theNameparameter value.
Related Commands
Get-VBRAmazonAccountReturns AWS credentials records.Connect-VBRAmazonS3ServiceConnects to Amazon S3 object storage.Get-VBRAmazonS3BucketReturns Amazon S3 buckets.